Node n1 = testRootNode.addNode("node1");
n1.addNode("a").addNode("b"); // no property
Node n2 = testRootNode.addNode("node2");
n2.addNode("a").addNode("b").addNode("c").setProperty("prop", "a");
Node n3 = testRootNode.addNode("node2");
n3.addNode("a").addNode("b").addNode("c").setProperty("prop", "b");
testRootNode.save();
List expected = Arrays.asList(new String[]{n1.getPath(), n2.getPath(), n3.getPath()});
String xpath = testPath + "/* order by a/b/c/@prop";
assertEquals(expected, collectPaths(executeQuery(xpath)));