public void testWrongServiceName() throws Exception {
SecurityToken securityToken = getSecurityToken("owner", "owner", GADGET_URL);
MakeRequestClient client = new MakeRequestClient(securityToken, fetcherConfig, serviceProvider,
"nosuchservice");
HttpResponse response = client.sendGet(FakeOAuthServiceProvider.RESOURCE_URL);
Map<String, String> metadata = response.getMetadata();
assertNull(metadata.get("oauthApprovalUrl"));
assertEquals("BAD_OAUTH_CONFIGURATION", metadata.get("oauthError"));
String errorText = metadata.get("oauthErrorText");
assertTrue(errorText, errorText.startsWith(