HttpSessionBindingEvent extends HttpSessionEvent { public String getName() { return name; } HttpSessionBindingEvent(HttpSession session, String name);  HttpSessionBindingEvent(HttpSession session, String name, Object value); String getName(); @Override HttpSession getSession(); Object getValue();  }
@Test void testGetName() { HttpSession session = new TestHttpSession(); HttpSessionBindingEvent event = new HttpSessionBindingEvent(session, "name"); assertEquals("name", event.getName()); }