assertEquals(null, path.iterator().next().getName());
}
public void testToString() {
PathImpl path = PathImpl.create(null);
path.addNode(new NodeImpl("firstName"));
assertEquals("firstName", path.toString());
path = PathImpl.create(null);
path.getLeafNode().setIndex(2);
assertEquals("[2]", path.toString());
path.addNode(new NodeImpl("firstName"));
assertEquals("[2].firstName", path.toString());
}