params.setAznUrl("aznurl");
params.oauthRequestException(OAuthError.BAD_OAUTH_CONFIGURATION, "whoa there cowboy");
HttpResponseBuilder responseBuilder = new HttpResponseBuilder();
params.addToResponse(responseBuilder);
HttpResponse response = responseBuilder.create();
assertEquals("BAD_OAUTH_CONFIGURATION", response.getMetadata().get("oauthError"));
String errorText = response.getMetadata().get("oauthErrorText");
checkStringContains("error text returned", errorText, "whoa there cowboy");
assertEquals("aznurl", response.getMetadata().get("oauthApprovalUrl"));
assertNotNull(response.getMetadata().get("oauthState"));