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