### Question:
HttpTask implements Task { public String asString(String url) throws Exception { Configuration config = Configuration.custom().withUrl(url).build(); return (String) executeRequest(config).get(CONTENT_KEY); }  @Override void execute(Context ctx); String asString(String url);  }### Answer:
@Test public void testForAsStringMethod() throws Exception { String response = task.asString("http: verify(getRequestedFor(urlEqualTo("/json"))); assertNotNull(response); }