code: public static void assertXpathEvaluatesTo(QualifiedName expectedValue,
                                                String xpathExpression,
                                                Document inDocument)
          throws XpathException {
          XpathEngine simpleXpathEngine = XMLUnit.newXpathEngine();
          NodeList nl =
              simpleXpathEngine.getMatchingNodes(xpathExpression, inDocument);
          NamespaceContext ctx = null;
          if (nl.getLength() > 0) {
              ctx = new NodeBasedNamespaceContext(nl.item(0));
          }
          assertEquals(expectedValue,
                       QualifiedName
                       .valueOf(simpleXpathEngine.evaluate(xpathExpression,
                                                           inDocument),
                                ctx));
      }
docs: Assert the value of an Xpath expression in an DOM Document
  @param expectedValue
  @param xpathExpression
  @param inDocument
  @see XpathEngine which provides the underlying evaluation mechanism