assertNull("The interface has an ancestor", classDescriptor.getSuperClassDescriptor());
assertTrue("The interface has not implementation/descendant", classDescriptor.hasDescendants());
Collection descendants = classDescriptor.getDescendantClassDescriptors();
assertEquals("Invalid number of implementation/descendants", descendants.size(), 1);
assertEquals("Invalid interface implementation",( (ClassDescriptor) descendants.iterator().next()).getClassName(), "org.apache.jackrabbit.ocm.testmodel.inheritance.AnotherDescendant");
assertTrue("Invalid extend strategy", classDescriptor.usesNodeTypePerHierarchyStrategy());
assertFalse("Incalid extend strategy", classDescriptor.usesNodeTypePerConcreteClassStrategy());
classDescriptor = mapper.getClassDescriptorByClass(AnotherDescendant.class);
assertNotNull("Classdescriptor is null", classDescriptor);
assertFalse("Interface is an interface", classDescriptor.isInterface());