@Test
void testOnStartup() throws Exception {

    DefaultWebApplication webApplication = new DefaultWebApplication();
    webApplication.setContextPath("my_servlet_context_name");
    TempDirInitializer initializer = new TempDirInitializer();
    initializer.onStartup(null, webApplication);
    File tempDir = new File("tmp/my_servlet_context_name");
    assertTrue(tempDir.exists());
    tempDir.delete();
    tempDir.getParentFile().delete();
}