discoveryBinder(binder).bindDiscoveredHttpClient("foo", FooClient.class)
.withFilter(TestingRequestFilter.class)
.withFilter(AnotherHttpRequestFilter.class)
.withTracing();
BalancingHttpClientBindingBuilder builder = discoveryBinder(binder).bindDiscoveredHttpClient("bar", BarClient.class);
builder.withFilter(TestingRequestFilter.class);
builder.addFilterBinding().to(AnotherHttpRequestFilter.class);
binder.install(new TraceTokenModule());
}
});
assertNotNull(injector.getInstance(Key.get(HttpClient.class, FooClient.class)));