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