test.setImportAll(true);
test.setJ2seClassLoadingCompliance(false);
test.getCapabilities().addCapability(factory.createModule("module", "1.0.0"));
test.getCapabilities().addCapability(factory.createPackage("package", "1.0.0"));
test.getRequirements().addRequirement(factory.createRequireModule("module", new VersionRange("1.0.0", "2.0.0")));
test.getRequirements().addRequirement(factory.createRequireModule("package", new VersionRange("1.0.0", "2.0.0")));
ClassLoadingMetaData other = serializeDeserialize(test, ClassLoadingMetaData.class);
assertEquals(test, other);
}
protected void testEquals(ClassLoadingMetaData test1, ClassLoadingMetaData test2, boolean result)