ServletContextAttributeEvent extends ServletContextEvent { public String getName() { return this.name; } ServletContextAttributeEvent(ServletContext servletContext, String name, Object value); String getName(); Object getValue();  }
@Test void testGetName() { ServletContext servletContext = new TestServletContext(); ServletContextAttributeEvent event = new ServletContextAttributeEvent(servletContext, "name", "value"); assertEquals("name", event.getName()); }