@Test
public void testPrefixedElement() {

    Matcher matcher = parser.parse("/prefix:name");
    assertFalse(matcher.matchesText());
    assertFalse(matcher.matchesElement());
    assertFalse(matcher.matchesAttribute(null, "name"));
    assertFalse(matcher.matchesAttribute(NS, "name"));
    assertFalse(matcher.matchesAttribute(NS, "eman"));
    assertEquals(Matcher.FAIL, matcher.descend(null, "name"));
    assertEquals(Matcher.FAIL, matcher.descend(NS, "enam"));
    matcher = matcher.descend(NS, "name");
    assertFalse(matcher.matchesText());
    assertTrue(matcher.matchesElement());
    assertFalse(matcher.matchesAttribute(null, "name"));
    assertFalse(matcher.matchesAttribute(NS, "name"));
    assertFalse(matcher.matchesAttribute(NS, "eman"));
}