@Test
public void testEncryptedPdf() throws Exception {

	Logger logger = Logger.getLogger("org.apache.pdfbox.pdfparser.PDFParser");
	logger.setLevel(java.util.logging.Level.OFF);
	try {
		PageHandler handler = new PageHandler() {
			public boolean handlePage(String pageText) {
				return false;
			}
		};
		new PagingPdfParser(TestFiles.encrypted_pdf.get(), handler).run();
		assertTrue(false);
	}
	catch (ParseException e) {
		assertTrue(e.getMessage().equals(Msg.doc_pw_protected.get()));
	}
}