setupProxyRequestMock(domain, url, false, -1, null, null);
setupGadgetAdminMock(true);
Map<String, String> options = new HashMap<String, String>();
options.put("OAUTH_SERVICE_NAME", "example");
request.setAuthType(AuthType.OAUTH);
request.setOAuthArguments(new OAuthArguments(AuthType.OAUTH, options));
options = new HashMap<String, String>();
options.put("OAUTH_SERVICE_NAME", "example");
HttpRequest req = new HttpRequest(Uri.parse(url))
.setAuthType(AuthType.OAUTH)
.setGadget(Uri.parse(""))
.setContainer("default")
.setOAuthArguments(new OAuthArguments(AuthType.OAUTH, options));
HttpResponse resp = new HttpResponseBuilder()
.setResponseString("Hello")
.create();
expect(pipeline.execute(req)).andReturn(resp);