HttpHandler implements AutoCloseable { public static HttpHandler paver(OnrampOptions options) { return new HttpHandler(createUri(options.getHost(), "paver", "v1"), options); } HttpHandler(URI url, OnrampOptions options); HttpResponse get(String path); HttpResponse post(String path, HttpEntity entity); @Override void close(); static HttpHandler paver(OnrampOptions options); static HttpHandler onramp(OnrampOptions options);  }
@Test public void paver() throws Exception { HttpHandler handler = HttpHandler.paver(options.withHost("host")); assertThat(handler.getUrl(), is(URI.create("https: }