params.setAznUrl("aznurl");
OAuthRequestException e = new OAuthRequestException(OAuthError.BAD_OAUTH_CONFIGURATION, "whoa there cowboy");
HttpResponseBuilder responseBuilder = new HttpResponseBuilder();
params.addToResponse(responseBuilder, e);
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"));