public void testNameElement() {
Element element =
new NamePath(null, createName("test"), Path.INDEX_UNDEFINED);
assertFalse(element.denotesCurrent());
assertFalse(element.denotesIdentifier());
assertTrue(element.denotesName());
assertFalse(element.denotesParent());
assertFalse(element.denotesRoot());
assertEquals(createName("test"), element.getName());
assertEquals(Path.INDEX_UNDEFINED, element.getIndex());
assertEquals(Path.INDEX_DEFAULT, element.getNormalizedIndex());