AbstractClassLoadingDomain domain = new AbstractClassLoadingDomain();
SimpleClassLoader scl = new SimpleClassLoader();
scl.addResource("xyzzy/Hello", new URL("file:///"));
domain.addDomainClassLoader(new DelegatingDomainClassLoader(scl));
URL url = domain.loadResource("xyzzy/rubbish", null);
assertNull(url);
ClassLoaderStats stats = (ClassLoaderStats) scl.requests.get("xyzzy/rubbish");
assertNotNull(stats);
assertEquals(1, stats.getResource);