FileUtil.writeString(resourceFile, "RESOURCE CONTENT");
resourceFile.deleteOnExit();
URL[] urls = new URL[] {FileUtil.toURL(temp)};
ExtendedURLClassLoader cl1 = new ExtendedURLClassLoader(urls, null, true);
URL res = cl1.getResource("data");
assertEquals(res, FileUtil.toURL(resourceFile));
Enumeration<URL> enums = cl1.getResources("data");
assertTrue(enums.hasMoreElements());
assertEquals(res, enums.nextElement());
FileUtil.deleteDir(temp);