public void testRegisterDomains() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystem();
assertFalse(system.isRegistered("a"));
MockClassLoaderDomain a = new MockClassLoaderDomain("a");
assertFalse(system.isDomainRegistered(a));
assertFalse(system.isRegistered("b"));
MockClassLoaderDomain b = new MockClassLoaderDomain("b");
assertFalse(system.isDomainRegistered(a));
system.registerDomain(a);
system.registerDomain(b);