public void testCanModify() throws Exception
{
Node node = root.addNode("node1", "nt:resource");
NodeType type = node.getPrimaryNodeType();
assertFalse(type.canAddChildNode("jcr:anyNode"));
assertFalse(type.canAddChildNode("jcr:anyNode", "nt:base"));
// assertTrue(type.canSetProperty("jcr:data", new BinaryValue("test")));
assertFalse(type.canSetProperty("jcr:data",
new BinaryValue[]{new BinaryValue(new ByteArrayInputStream("test".getBytes()), SpoolConfig
.getDefaultSpoolConfig())}));
assertFalse(type.canSetProperty("jcr:notFound", new BinaryValue(new ByteArrayInputStream("test".getBytes()),