@Test
void testService7() throws Exception {

    NanoPiranha piranha = new NanoPiranhaBuilder()
            .webApplication(new DefaultWebApplication())
            .directoryResource("src/test/wicket")
            .filter("WicketFilter2", new WicketFilter())
            .filterInitParam("WicketFilter2", "applicationClassName", "cloud.piranha.nano.WicketApplication")
            .filterInitParam("WicketFilter2", "filterMappingUrlPattern", "/*")
            .filterInitParam("WicketFilter2", "wicket.configuration", "deployment")
            .build();
    NanoRequest request = new NanoRequestBuilder()
            .servletPath("/")
            .build();
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    NanoResponse response = new NanoResponseBuilder()
            .outputStream(outputStream)
            .build();
    piranha.service(request, response);
    assertTrue(outputStream.toString().contains("Hello Wicket"));
}