@Test
public void testMaliciousPath() {

    // test if absolut paths are not working
    StaticResourceClassloader klas = new StaticResourceClassloader(new MockBundle(), overrideDir, bundlePath);
    URL result = klas.getResource("/etc/hostname");
    Assert.assertNull(result);
    // test if relative ascending paths are not working
    result = klas.getResource("../../etc/hostname");
    Assert.assertNull(result);
}