}
public void testImportVersionCheckFailed() throws Exception
{
VFSClassLoaderFactory a = new VFSClassLoaderFactory("a");
ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
a.getCapabilities().addCapability(factory.createModule("ModuleA", "3.0.0"));
a.getCapabilities().addCapability(factory.createPackage(A.class.getPackage().getName()));
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);
assertLoadClassFail(B.class, clA);
VFSClassLoaderFactory b = new VFSClassLoaderFactory("b");
b.getRequirements().addRequirement(factory.createRequireModule("ModuleA", new VersionRange("1.0.0", "2.0.0")));
b.getRoots().add(getRoot(B.class));
b.setIncludedPackages(B.class.getPackage().getName());
KernelDeployment depB = install(b);
try
{