MakeRequestClient client = makeNonSocialClient("owner", "owner", GADGET_URL);
setNoSpecOptions(client);
client.getBaseArgs().removeRequestOption(OAuthArguments.ACCESS_TOKEN_URL_PARAM);
// Get the request token
HttpResponse response = client.sendGet(FakeOAuthServiceProvider.RESOURCE_URL);
// try to swap for access token
response = client.sendGet(FakeOAuthServiceProvider.RESOURCE_URL);
assertEquals("", response.getResponseAsString());
assertEquals(403, response.getHttpStatusCode());
assertEquals(OAuthError.BAD_OAUTH_TOKEN_URL.name(),
response.getMetadata().get("oauthError"));
String errorText = response.getMetadata().get("oauthErrorText");
assertNotNull(errorText);
checkStringContains("should report no access token url", errorText,
"No access token URL specified");
}