DiscoverClasses discovery = new DiscoverClasses(loaders);
ResourceClassIterator iter = discovery.findResourceClasses(name);
while (iter.hasNext()) {
ResourceClass resource = iter.nextResourceClass();
try {
Class implClass = resource.loadClass();
if ( implClass != null ) {
assertEquals("org.apache.commons.discovery.test.TestImpl2_1", implClass.getName());
return;
}
}