clazz = Class.forName(ClassInfo.class.getName());
URL url2 = clazz.getProtectionDomain().getCodeSource().getLocation();
urls = new URL[]{url1, url2};
ClassLoader cl2 = new URLClassLoader(urls, null);
Configuration configuration = getConfiguration();
ClassInfo ci1 = configuration.getClassInfo(className, cl1);
ClassInfo ci2 = configuration.getClassInfo(className, cl2);
assertEquals(ci1, ci2);
className = "org.jboss.test.beaninfo.support.BeanInfoCache";
BeanInfo bi1 = configuration.getBeanInfo(className, cl1);
BeanInfo bi2 = configuration.getBeanInfo(className, cl2);
assertFalse(bi1.equals(bi2));
}