// start the injector:
ninjaServletListener.contextInitialized(servletContextEvent);
// test stuff
Injector injector = ninjaServletListener.getInjector();
Router router = injector.getInstance((Router.class));
//router is initialized otherwise there will be exception that routes isn't compiled
router.getRouteFor("GET", "/");
//validate that main application module is initialized
Boolean mainModuleConstant = injector.getInstance(Key.get(Boolean.class, Names.named(Module.TEST_CONSTANT_NAME)));
assertThat(mainModuleConstant, is(true));