HttpSessionEventLoggingListener implements HttpSessionListener,
                                             HttpSessionAttributeListener,
                                             HttpSessionActivationListener { @Override public void sessionCreated(HttpSessionEvent se) { if (logger.isDebugEnabled()) { HttpSession session = se.getSession(); logger.debug("SESSIONID#{} sessionCreated : {}", session.getId(), se .getSource()); } }  @Override void sessionWillPassivate(HttpSessionEvent se); @Override void sessionDidActivate(HttpSessionEvent se); @Override void attributeAdded(HttpSessionBindingEvent se); @Override void attributeRemoved(HttpSessionBindingEvent se); @Override void attributeReplaced(HttpSessionBindingEvent se); @Override void sessionCreated(HttpSessionEvent se); @Override void sessionDestroyed(HttpSessionEvent se);  }
@Test public void testSessionCreated() { String sessionCreatedStr = "SESSIONID#" + mockHttpSession.getId() + " sessionCreated : " + mockHttpSession.toString(); listener.sessionCreated(httpSessionEvent); verifyLogging(sessionCreatedStr, Level.DEBUG); }
@Test public void testSessionCreatedIsDebugEnabledFalse() throws Exception { LogLevelChangeUtil.setLogLevel(LogLevelChangeUtil.LogLevel.INFO); listener.sessionCreated(httpSessionEvent); assertThat(logger.isDebugEnabled(), is(false)); }