public void testClearClassCache() throws Exception
{
AbstractClassLoadingDomain domain = new AbstractClassLoadingDomain();
SimpleClassLoader scl = new SimpleClassLoader();
scl.addClass("xyzzy.Hello", String.class);
DelegatingDomainClassLoader ddcl = new DelegatingDomainClassLoader(scl);
domain.addDomainClassLoader(ddcl);
domain.loadClass("xyzzy.Hello", false, null);
ClassLoaderStats stats = (ClassLoaderStats) scl.requests.get("xyzzy.Hello");