@Test
void testGetResourceAsStream() {

    DefaultResourceManager resourceManager = new DefaultResourceManager();
    DefaultWebApplication webApp = new DefaultWebApplication();
    webApp.setResourceManager(resourceManager);
    webApp.addResource(new DirectoryResource(new File(".")));
    assertNotNull(webApp.getResourceAsStream("/pom.xml"));
}