title: Writing JUnits for PDF generated by iText
body: <p>I am curious if anyone has an experience in writing JUnits for PDFs generated in Java (especially by iText). I did a quick search on google and I could not find anything specific.
  What I was able to do so far was checking that the PDF has been generated, has certain amount of pages and the document is closed. But I was unable to verify the content of the document. Can someone provide an example what they did in the past to achieve such result? Or am I completely wrong and JUnits for my PDFs are overkill?
  Thanks</p>