ClassLoader clA = assertClassLoader(contextA);
assertLoadClass(A.class, clA);
assertLoadClassFail(B.class, clA);
MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
b.getRequirements().addRequirement(factory.createRequirePackage(A.class.getPackage().getName(), new VersionRange("1.0.0", "2.0.0")));
b.setPathsAndPackageNames(B.class);
KernelControllerContext contextB = install(b);
try
{
assertLoadClass(A.class, clA);