@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);
}