JaxrsModule extends AbstractConfigurationAwareModule { public static Module adminOnlyJaxrsModule() { return new AdminOnlyJaxrsModule(); }  static JaxrsModule explicitJaxrsModule(); static Module adminOnlyJaxrsModule(); @Override void setup(Binder binder); JaxrsModule withOptionsEnabled();  }
@Test public void testAdminOnly() throws Exception { Injector injector = bootstrapTest() .withModules( new TestingNodeModule(), adminOnlyJaxrsModule(), new JsonModule(), new ReportingModule(), new TestingHttpServerModule(), new Module() { @Override public void configure(Binder binder) { binder.bind(Servlet.class).annotatedWith(TheServlet.class).to(DummyServlet.class); } @Provides @TheServlet public Map<String, String> createTheServletParams() { return new HashMap<>(); } }) .initialize(); lifeCycleManager = injector.getInstance(LifeCycleManager.class); server = injector.getInstance(TestingHttpServer.class); }