EmbeddedPiranha implements Piranha { public WebApplication getWebApplication() { return webApplication; } EmbeddedPiranha(); EmbeddedPiranha destroy(); @Override String getVersion(); WebApplication getWebApplication(); EmbeddedPiranha initialize(); void service(ServletRequest servletRequest, ServletResponse servletResponse); EmbeddedPiranha start(); EmbeddedPiranha stop();  }
@Test void testExtensionHandling() throws Exception { EmbeddedPiranha piranha = new EmbeddedPiranhaBuilder() .extension(TestExtension.class) .buildAndStart(); assertNotNull(piranha.getWebApplication().getAttribute(TestInitializer.class.getName())); }