HttpClientFactory implements DisposableSupplier<Client> { @Override public Client get() { return builder.build(); } @Inject  HttpClientFactory(final JerseyClientBuilder builder); @Override Client get(); @Override void dispose(final Client instance);  }
@Test public void assertCanCreateClient() { JerseyClientBuilderFactory builder = new JerseyClientBuilderFactory(); HttpClientFactory factory = new HttpClientFactory(builder.get()); assertNotNull(factory.get()); }