SpringEnvironmentSetupListener implements ServletContextListener { @Override public void contextDestroyed( ServletContextEvent servletContextEvent ) { }  @Override void contextInitialized( ServletContextEvent servletContextEvent ); @Override void contextDestroyed( ServletContextEvent servletContextEvent );  }
@Test public void testContextDestroyed() throws Exception { setupListener.contextDestroyed( contextEvent ); }