public void testPackageFilterIncludeJava() throws Exception
{
ClassLoaderSystem system = createClassLoaderSystem();
PackageClassFilter filter = PackageClassFilter.createPackageClassFilter("dummy");
filter.setIncludeJava(true);
ParentPolicy parentPolicy = new ParentPolicy(filter, ClassFilterUtils.NOTHING);
ClassLoaderDomain domain = system.createAndRegisterDomain("test", parentPolicy, null);
MockClassLoaderPolicy policy = createMockClassLoaderPolicy();
ClassLoader classLoader = system.registerClassLoaderPolicy(domain, policy);
assertLoadClass(Object.class, classLoader, null, true);
}