}).annotatedWith(TheServlet.class).toInstance(ImmutableMap.<String, String>of());
newSetBinder(binder, Filter.class, TheServlet.class).addBinding().toInstance(filter);
}
});
Injector injector = app.initialize();
LifeCycleManager lifeCycleManager = injector.getInstance(LifeCycleManager.class);
TestingHttpServer server = injector.getInstance(TestingHttpServer.class);
try (HttpClient client = new JettyHttpClient(new HttpClientConfig().setConnectTimeout(new Duration(1, SECONDS)))) {