assertEquals(poolB, b.getClassPool());
}
public void testOnePoolPerClassLoadedByB() throws Exception
{
ClassPoolDomain domain = createClassPoolDomain("SIMPLE", null, false);
ClassPool poolA = createDelegatingClassPool(domain, JAR_A);
ClassPool poolB = createDelegatingClassPool(domain, JAR_B);
//The first time we access the pool it will create the classes, second time will use the cache
accessOnePoolPerClassLoadedByB(poolA, poolB);