NotificationClient implements Closeable { public String version() { final URI uri = UriBuilder.fromUri(rootUri).path("/version").build(); LOGGER.debug("GET {}", uri); return client.target(uri).request().get(String.class); } NotificationClient(final MetricRegistry registry, final Client client, final URI uri); Optional<SortedSet<Notification>> fetch(final String username); Optional<Notification> store(final String username, final Notification notification); void delete(final String username, final Collection<String> ids); void delete(final String username); boolean ping(); String version(); @Override void close();  }
@Test public void testVersion() throws Exception { assertThat(client.version()).isEqualTo("1.0.0"); }