{
ClassPool clA = null;
Result rA = new Result();
try
{
BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
createModule("ModuleA").
createPackage(PACKAGE_A, "1.0.0");
clA = createClassPool(rA, "A", builderA, JAR_A_1);
CtClass classA = assertLoadCtClass(CLASS_A, clA);
assertCannotLoadCtClass(clA, CLASS_B);
ClassPool clB = null;
Result rB = new Result();
try
{
BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
createPackage(PACKAGE_B).
createRequirePackage(PACKAGE_A, new VersionRange("1.0.0", "2.0.0"));
clB = createClassPool(rB, "B", builderB, JAR_B_1);
CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
assertSame(classA, classA1);