SolutionContextListener implements ServletContextListener { protected WebApplicationContext createWebApplicationContext( String fullyQualifiedServerUrl, ServletContext context ) { return new WebApplicationContext( SolutionContextListener.solutionPath, fullyQualifiedServerUrl, context .getRealPath( "" ), context ); }  void contextInitialized( final ServletContextEvent event ); void showInitializationMessage( final boolean initOk, final String fullyQualifiedServerUrl ); void contextDestroyed( final ServletContextEvent event );  }
@Test public void testCreateWebApplicationContext() throws Exception { WebApplicationContext webApplicationContext = solutionContextListener.createWebApplicationContext( "http: assertNotNull( webApplicationContext ); }