XmlFunctions { public static String xPath(String content, String expression, TestContext context) { return new XpathFunction().execute(Arrays.asList(content, expression), context); } private  XmlFunctions(); static String createCDataSection(String content, TestContext context); static String escapeXml(String content, TestContext context); static String xPath(String content, String expression, TestContext context);  }
@Test public void testXpath() throws Exception { Assert.assertEquals(xPath("<Test><Message>Some Text</Message></Test>", "/Test/Message", context), "Some Text"); }