assertEquals("wrong result size", 1, nodes.getSize());
// spec does not say which path must be returned -> use isSame()
assertTrue("wrong node", s.isSame(nodes.nextNode()));
// remove remaining node from the shared set
s.removeShare();
testRootNode.save();
stmt = testPath + "//" + nodeName3;
nodes = executeQuery(stmt).getNodes();
assertEquals("wrong result size", 0, nodes.getSize());