+ "sign_owner:'false',"
+ "sign_viewer:'true',"
+ "oauth_service_name:'oauthService',"
+ "authz: 'oauth' }"
+ "}}");
HttpRequest httpRequest = new HttpRequest(Uri.parse("http://www.example.org/somecontent"));
httpRequest.setMethod("POST");
httpRequest.setAuthType(AuthType.OAUTH);
OAuthArguments oauthArgs =
new OAuthArguments(AuthType.OAUTH, ImmutableMap.<String, String>of());
oauthArgs.setSignOwner(false);
oauthArgs.setServiceName("oauthService");
httpRequest.setOAuthArguments(oauthArgs);
httpRequest.setPostBody("POSTBODY".getBytes());
Capture<HttpRequest> requestCapture = new Capture<HttpRequest>();
expect(pipeline.execute(capture(requestCapture))).andReturn(builder.create());
replay();
RpcHandler operation = registry.getRpcHandler(request);
operation.execute(emptyFormItems, token, converter).get();
verify();
assertEquals(httpRequest.getOAuthArguments(),
requestCapture.getValue().getOAuthArguments());
}