XmlXpathResolver { public String getValue(final String typeQuery, final String xml) { XPath xPath = xPathProvider.getXPath(); InputSource source = new InputSource(new StringReader(xml)); return evaluate(typeQuery, xPath, source); }  String getValue(final String typeQuery, final String xml);  }
@Test public void testGetValue() { String value = underTest.getValue("local-name(/*[1])", request()); Assert.assertEquals(value, "BOB"); }
@Test(expectedExceptions = XmlXpathResolver.InvalidXPathExperssionException.class) public void testGetValueWithInvalid() { underTest.getValue("local-name( }