complexXPath3.toString());
XPathElement xpathToMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value3\"]/xpath3")
.keySet().iterator().next();
assertTrue(xpathToMatch.matches(complexXPath3));
XPathElement xpathToNotMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value4\"]/xpath3")
.keySet().iterator().next();
assertFalse(xpathToNotMatch.matches(complexXPath3));