@Test
public void simpleGet() throws Exception {

  stubFor(get(urlEqualTo("/foo")).willReturn(aResponse().withStatus(HttpStatus.SC_OK).withBody("bar")));
  try (HttpHandler handler = new HttpHandler(url, options)) {
    HttpResponse response = handler.get("foo");
    try (Reader reader = new InputStreamReader(response.getEntity().getContent())) {
      assertThat(CharStreams.toString(reader), is("bar"));
    }
  }
}