@Test
public void testGetResource() throws Exception {
final Path directory = Files.createTempDirectory(ExtraPathResourceClassLoaderTest.class.getName());
final File tempFile = new File(directory.toFile(), "test");
tempFile.createNewFile();
final Watcher watcher = new WatcherNIO2();
watcher.run();
WatchResourcesClassLoader classLoader = new WatchResourcesClassLoader();
classLoader.initWatchResources(new URL[]{directory.toUri().toURL()}, watcher);
assertNull("Not returned before modification", classLoader.getResource(tempFile.getName()));