@Test
void testForward2() throws Exception {

    TestWebApplicationRequest request = new TestWebApplicationRequest();
    TestWebApplicationResponse response = new TestWebApplicationResponse();
    DefaultWebApplication webApp = new DefaultWebApplication();
    webApp.setWebApplicationRequestMapper(new DefaultWebApplicationRequestMapper());
    webApp.addServlet("Snoop", TestSnoopServlet.class);
    webApp.addServletMapping("Snoop", "/Snoop");
    webApp.initialize();
    webApp.start();
    RequestDispatcher dispatcher = webApp.getRequestDispatcher("/Snoop");
    dispatcher.forward(request, response);
    String responseText = new String(response.getResponseBytes());
    webApp.stop();
    assertTrue(responseText.contains("<title>Snoop</title>"));
}