assertEmpty(domain.removed);
}
public void testRegisterClassLoaderConstructDomainWithoutParentDomain() throws Exception
{
MockClassLoaderSystem system = createMockClassLoaderSystem();
ClassLoader cl1 = createAndRegisterMockClassLoader(system, "test", ParentPolicy.AFTER, "mock");
MockClassLoaderDomain domain = (MockClassLoaderDomain) system.getDomain("test");
assertEquals(ParentPolicy.AFTER, domain.getParentPolicy());
assertFalse(domain.getParent() instanceof ClassLoaderDomain);
List<ClassLoader> expected = new ArrayList<ClassLoader>();
expected.add(cl1);