@Test
public void testParse() throws ParseException, CheckedOutOfMemoryError {

	final List<String> pages = new ArrayList<String> (3);
	PageHandler handler = new PageHandler() {
		public boolean handlePage(String pageText) {
			pages.add(pageText);
			return false;
		}
	};
	new PagingPdfParser(TestFiles.multi_page_pdf.get(), handler).run();
	assertEquals(3, pages.size());
	assertEquals("page 1" + Util.LS, pages.get(0));
	assertEquals("page 2" + Util.LS, pages.get(1));
	assertEquals("page 3" + Util.LS, pages.get(2));
}