@Test
@Parameters({

    "root",
    "some",
    "some/path",
    "some/path/element",
    "mid",
    "mid/anything",
    "mid/anything/with/path",
    "mid/value",
    "sub",
    "sub/name",
    "sub/value",
    "sub/name/text",
    "sub/value/text"
})
public void testMatchesParent(CharSequence matchingParent) {
  Matcher matcher = Matcher.of("root,some/path/element,mid/*/value,sub(name,value)/text");
  assertTrue("matchesParent(" + matchingParent + ") is false", matcher.matchesParent(matchingParent));
}