HttpSessionEventLoggingListener implements HttpSessionListener,
                                             HttpSessionAttributeListener,
                                             HttpSessionActivationListener { @Override public void attributeRemoved(HttpSessionBindingEvent se) { if (logger.isDebugEnabled()) { HttpSession session = se.getSession(); logger.debug("SESSIONID#{} attributeRemoved : {}={}", session .getId(), se.getName(), se.getValue()); } }  @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 testAttributeRemoved() { String attributeRemovedStr = "SESSIONID#" + mockHttpSession.getId() + " attributeRemoved : terasoluna=AA"; listener.attributeRemoved(sessionBindingEvent); verifyLogging(attributeRemovedStr, Level.DEBUG); }
@Test public void testAttributeRemovedIsDebugEnabledFalse() throws Exception { LogLevelChangeUtil.setLogLevel(LogLevelChangeUtil.LogLevel.INFO); listener.attributeRemoved(sessionBindingEvent); assertThat(logger.isDebugEnabled(), is(false)); }