PDFBOX-1980: refactored, added deterministic / non-deterministic test; make it easier to add corner cases in the future

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1633434 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-1980: fix javadoc format error

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1633435 13f79535-47bb-0310-9956-ffa450edef68