@Test
void testAddResource() throws Exception {

    DefaultResourceManager resourceManager = new DefaultResourceManager();
    DefaultWebApplication webApp = new DefaultWebApplication();
    webApp.setResourceManager(resourceManager);
    webApp.addResource(new DirectoryResource(new File(".")));
    assertNotNull(webApp.getResource("/src/main/java"));
}