public void testParentDoesExists() throws Exception
{
ClassLoaderDomain domain = system.createAndRegisterDomain("TestDomain", ParentPolicy.BEFORE_BUT_JAVA_ONLY);
try
{
VFSClassLoaderFactory a = new VFSClassLoaderFactory("a");
a.setDomain("SubDomain");
a.setParentDomain("TestDomain");
a.getRoots().add(getRoot(A.class));
a.setIncludedPackages(A.class.getPackage().getName());
KernelDeployment depA = install(a);
try
{
ClassLoader clA = assertClassLoader(a);
assertLoadClass(A.class, clA);