DeployerClient deployer = getMainDeployer();
Deployment deployment = createSimpleDeployment("top");
addClassLoadingMetaData(deployment, "top", null);
ContextInfo sub1 = addChild(deployment, "sub1");
ClassLoadingMetaData topSub1 = addClassLoadingMetaData(sub1, "top/sub1", null, A.class);
topSub1.setDomain("TestDomain");
topSub1.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
topSub1.setImportAll(true);
ContextInfo sub2 = addChild(deployment, "sub2");
ClassLoadingMetaData topSub2 = addClassLoadingMetaData(sub2, "top/sub2", null, B.class);
topSub2.setDomain("TestDomain");
topSub2.setParentDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
topSub2.setImportAll(true);