Node node = getNode("/foo[1]");
assertNotNull(node);
assertEquals("foo", node.getName());
assertEquals("/foo", node.getPath());
node.addNode("bar");
Node bar = getNode("/foo[1]/bar[1]");
assertEquals("/foo/bar", bar.getPath());
try {
getNode("/foo[1]/bar[2]");