Document document = XMLUnit.buildControlDocument(inXMLString); assertXpathEvaluatesTo(expectedValue, xpathExpression, document);
assertXpathEvaluatesTo(expectedValue, xpathExpression, inXMLString, null);
    public static void assertXpathEvaluatesTo(String expectedValue,    String xpathExpression, String inXMLString)        throws SAXException, IOException,               XpathException {        Document document = XMLUnit.buildControlDocument(inXMLString);        assertXpathEvaluatesTo(expectedValue, xpathExpression, document);    }