public void testHierarchyFiltered() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystem();
NoMatchClassFilter filter = new NoMatchClassFilter(MockLoader.class);
ParentPolicy pp = new ParentPolicy(filter, ClassFilterUtils.NOTHING);
ClassLoaderDomain parent = system.createAndRegisterDomain("parent", ParentPolicy.BEFORE_BUT_JAVA_ONLY);
ClassLoaderDomain child = system.createAndRegisterDomain("child", pp, parent);
MockClassLoaderPolicy parentPolicy = createMockClassLoaderPolicy();
parentPolicy.setPathsAndPackageNames(MockLoader.class, Loader.class);