node = root.addNode("node2", "nt:file");
type = node.getPrimaryNodeType();
// does not work - TODO
// assertTrue(type.canAddChildNode("jcr:content"));
assertTrue(type.canAddChildNode("jcr:content", "nt:unstructured"));
assertFalse(type.canAddChildNode("jcr:othernode"));
assertTrue(type.canAddChildNode("jcr:content", "nt:unstructured"));
assertFalse(type.canAddChildNode("jcr:content", "mix:referenceable"));
// root.getNode("node2").remove();
node = root.addNode("node3", "nt:folder");