@Test
public void testQueryTexts() throws Exception {

	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
	DocumentBuilder builder = factory.newDocumentBuilder();
	ByteArrayInputStream in = new ByteArrayInputStream(
			"<a><b>2</b><b>4</b></a>".getBytes());
	Document doc = builder.parse(in);
	XPathFinder finder = new XPathFinder();
	finder.setDoc(doc);
	List<String> ret = finder.queryTexts("//b");
	assertEquals("2", ret.get(0));
	assertEquals("4", ret.get(1));
	assertEquals(2, ret.size());
}