PipelineClient implements Closeable { public boolean ping() { final URI uri = UriBuilder.fromUri(destination).path("/ping").build(); LOGGER.debug("GET {}", uri); final String response = client.target(uri).request().get(String.class); return "pong".equals(response); } PipelineClient(@Nonnull final Client client, @Nonnull final URI destination); EventSource fetch(); boolean ping(); String version(); @Override void close();  }
@Test public void testPing() throws Exception { assertThat(client.ping()).isTrue(); }