@Test
public void testNextFetchThrowsGadgetException() throws Exception {
serviceProvider.setThrow(
new GadgetException(GadgetException.Code.FAILED_TO_RETRIEVE_CONTENT, "mildly wrong"));
MakeRequestClient client = makeNonSocialClient("owner", "owner", GADGET_URL);
HttpResponse response = client.sendGet(FakeOAuthServiceProvider.ACCESS_TOKEN_URL);
assertEquals("MISSING_SERVER_RESPONSE", response.getMetadata().get("oauthError"));
assertEquals("", response.getResponseAsString());
String oauthErrorText = response.getMetadata().get("oauthErrorText");
checkStringContains("should say no response", oauthErrorText, "No response from server");
checkStringContains("should show request", oauthErrorText,