for (int i = 0; i < supertypesFromManager.length; i++) {
assertEquals(supertypesFromManager[i].getName(), supertypesFromGraph[i].getString());
}
Map<PropertyDefinitionKey, Node> propertyDefsFromGraph = new HashMap<PropertyDefinitionKey, Node>();
NodeIterator properties = typeNode.getNodes(JcrLexicon.PROPERTY_DEFINITION.getString(registry));
while (properties.hasNext()) {
Node def = properties.nextNode();
propertyDefsFromGraph.put(new PropertyDefinitionKey(def, registry), def);
}
PropertyDefinition[] propertyDefs = nodeType.getDeclaredPropertyDefinitions();
for (int i = 0; i < propertyDefs.length; i++) {
JcrPropertyDefinition propertyDef = (JcrPropertyDefinition)propertyDefs[i];
Node propNode = propertyDefsFromGraph.get(new PropertyDefinitionKey(propertyDef));
compareProperty(propertyDef, propNode, registry);
}
Map<NodeDefinitionKey, Node> nodeDefsFromGraph = new HashMap<NodeDefinitionKey, Node>();
NodeIterator nodes = typeNode.getNodes(JcrLexicon.CHILD_NODE_DEFINITION.getString(registry));
while (nodes.hasNext()) {
Node def = nodes.nextNode();
nodeDefsFromGraph.put(new NodeDefinitionKey(def, registry), def);
}
NodeDefinition[] nodeDefs = nodeType.getDeclaredChildNodeDefinitions();
for (int i = 0; i < nodeDefs.length; i++) {