assertThat(ns.getNamespaceUri(), is("http://namespace.com/ns"));
List<NodeTypeDefinition> defns = importer.getNodeTypeDefinitions();
assertThat(defns.size(), is(1));
NodeTypeDefinition defn = defns.get(0);
assertThat(defn.getName(), is("ex:NodeType"));
assertThat(defn.isAbstract(), is(true));
assertThat(defn.hasOrderableChildNodes(), is(true));
assertThat(defn.isMixin(), is(true));
assertThat(defn.isQueryable(), is(false));
assertThat(defn.getPrimaryItemName(), is("ex:property"));
String[] supertypeNames = defn.getDeclaredSupertypeNames();
assertThat(supertypeNames[0], is("ex:ParentType1"));
assertThat(supertypeNames[1], is("ex:ParentType2"));
PropertyDefinition[] propDefns = defn.getDeclaredPropertyDefinitions();
assertThat(propDefns.length, is(1));
PropertyDefinition propDefn = propDefns[0];
assertThat(propDefn.getName(), is("ex:property"));
assertThat(propDefn.getRequiredType(), is(PropertyType.STRING));
assertThat(propDefn.isMandatory(), is(true));
assertThat(propDefn.isAutoCreated(), is(true));
assertThat(propDefn.isProtected(), is(true));
assertThat(propDefn.isMultiple(), is(true));
assertThat(propDefn.getOnParentVersion(), is(OnParentVersionAction.VERSION));
assertThat(propDefn.isFullTextSearchable(), is(false));
assertThat(propDefn.isQueryOrderable(), is(false));
Value[] defaultValues = propDefn.getDefaultValues();
assertThat(defaultValues[0].getString(), is("default1"));
assertThat(defaultValues[1].getString(), is("default2"));
String[] queryOps = propDefn.getAvailableQueryOperators();
assertThat(queryOps[0], is("="));
assertThat(queryOps[1], is("<>"));
assertThat(queryOps[2], is("<"));
assertThat(queryOps[3], is("<="));
assertThat(queryOps[4], is(">"));
assertThat(queryOps[5], is(">="));
assertThat(queryOps[6], is("LIKE"));
String[] constraints = propDefn.getValueConstraints();
assertThat(constraints[0], is("constraint1"));
assertThat(constraints[1], is("constraint2"));
NodeDefinition[] childDefns = defn.getDeclaredChildNodeDefinitions();
assertThat(childDefns.length, is(1));
NodeDefinition childDefn = childDefns[0];
assertThat(childDefn.getName(), is("ex:node"));
assertThat(childDefn.getDefaultPrimaryTypeName(), is("ex:defaultType"));
assertThat(childDefn.isMandatory(), is(true));