@Test
public void testText() {

    Matcher matcher = parser.parse("/text()");
    assertTrue(matcher.matchesText());
    assertFalse(matcher.matchesElement());
    assertFalse(matcher.matchesAttribute(NS, "name"));
    assertEquals(Matcher.FAIL, matcher.descend(NS, "name"));
}