> +
> + }
> +
> + @Override
> + protected Properties setupProperties() {
> + Properties props = super.setupProperties();
> + // use no sig algorithm for expect tests (means no credential is
> required either)
> + props.put(OAuthProperties.SIGNATURE_OR_MAC_ALGORITHM,
> OAuthConstants.NO_ALGORITHM);
> + return props;
> + }
> +
> + @Override
> + protected HttpRequestComparisonType compareHttpRequestAsType(HttpRequest
> input) {
> + HttpRequestComparisonType reqType = HttpRequestComparisonType.DEFAULT;
> + if (input.getPayload() != null) {
> + if
> (input.getPayload().getContentMetadata().getContentType().equals(MediaType.APPLICATION_JSON))
> {
`ContentMetadata.getContentType` returns a nullable String, not a `MediaType`.
Compare instead:
```
MediaType.APPLICATION_JSON.toString().equals(input.getPayload().getContentMetadata().getContentType())
```
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/29/files#r13941532