PdfCleanUpProcessor { public void cleanUp() throws IOException, DocumentException { for (Map.Entry<Integer, List<PdfCleanUpLocation>> entry : pdfCleanUpLocations.entrySet()) { cleanUpPage(entry.getKey(), entry.getValue()); } pdfStamper.getReader().removeUnusedObjects(); } PdfCleanUpProcessor(List<PdfCleanUpLocation> pdfCleanUpLocations, PdfStamper pdfStamper);  PdfCleanUpProcessor(PdfStamper pdfStamper); void cleanUp(); static double floatMultiplier; static boolean fillCleanedArea; static double arcTolerance; }
@Test public void cleanUp() throws IOException, DocumentException, InterruptedException { cleanUp(input, output, cleanUpLocations); compareByContent(cmp, output, OUTPUT_PATH, "diff"); }