@Test
public void testQueryLongs() 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<Long> longs = finder.queryLongs("//b");
	assertEquals(2l, longs.get(0));
	assertEquals(4l, longs.get(1));
	assertEquals(2, longs.size());
}