MappingDescriptor descriptor = (MappingDescriptor) factory.getObject();
Collection col = descriptor.getClassDescriptors();
assertEquals(" different number of descriptors ", 2, col.size());
Iterator iter = col.iterator();
ClassDescriptor descr = (ClassDescriptor) iter.next();
assertEquals("wrong class name descriptor ", "org.springmodules.jcr.mapping.A", descr.getClassName());
descr = (ClassDescriptor) iter.next();
assertEquals("wrong class name descriptor ", "org.springmodules.jcr.mapping.B", descr.getClassName());
}