XPath xpath = getXPath();
assertEquals(xpath.evaluate("count(/a:feed)", feed), 1.0d);
assertTrue(xpath.booleanValueOf("/a:feed/a:entry", feed));
assertEquals(xpath.numericValueOf("count(/a:feed)", feed), 1.0d);
assertEquals(xpath.valueOf("/a:feed/a:entry/a:title", feed), "Atom-Powered Robots Run Amok");
assertEquals(xpath.selectNodes("/a:feed/a:entry", feed).size(), 1);
assertTrue(xpath.selectSingleNode("/a:feed", feed) instanceof Feed);
assertEquals(xpath.selectSingleNode("..", feed.getTitleElement()), feed);
assertEquals(xpath.selectSingleNode("ancestor::*", feed.getEntries().get(0)), feed);
assertEquals(xpath.valueOf("concat('The feed is is ',/a:feed/a:id)", feed), "The feed is is urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6");