ClassLoader cl = system.registerClassLoaderPolicy(policy);
assertLoadClass(TestA1.class, cl);
assertLoadClass(TestB1.class, cl);
TestClassLoaderPolicyFactory factory = new TestClassLoaderPolicyFactory(policy, false);
LazyFilteredDelegateLoader delegate = new LazyFilteredDelegateLoader(factory);
assertLoadClassFail(TestA1.class, delegate);
assertLoadClassFail(TestB1.class, delegate);
factory.setCanCreate(true);
assertLoadClass(TestA1.class, delegate);