}
public void testGetDocument() {
PdfBoxDocumentHandler documentHandler = new PdfBoxDocumentHandler();
Resource pdfResource = getPdfResource();
Map description = new HashMap();
InputStream inputStream = null;
try {
inputStream = pdfResource.getInputStream();
Document document = documentHandler.doGetDocumentWithInputStream(description, inputStream);
checkField(document, "path", false);
checkField(document, "url", false);
checkField(document, "contents", true);
checkField(document, "summary", true);