@Test
public void testProblemReportingExtension() throws Exception {
OAuthMessage m = new OAuthMessage(null, null, null);
m.addParameter("oauth_problem", "consumer_key_refused");
m.addParameter("oauth_problem_advice", "stuff it");
OAuthProtocolException e = new OAuthProtocolException(m);
assertFalse(e.canRetry());
HttpResponse r = e.getResponseForGadget();
Map<String, String> metadata = r.getMetadata();
assertEquals("stuff it", metadata.get("oauthErrorText"));