ServletRequestEvent extends java.util.EventObject { public ServletContext getServletContext() { return (ServletContext) super.getSource(); } ServletRequestEvent(ServletContext servletContext, ServletRequest servletRequest); ServletContext getServletContext(); ServletRequest getServletRequest();  }
@Test void testGetServletContext() { ServletContext servletContext = new TestServletContext(); ServletRequestEvent event = new ServletRequestEvent(servletContext, null); assertNotNull(event.getServletContext()); }