6.5.
New Logo on each Page
Some documents need a new logo. This should be visible on each page.
The new logo exists as an image file. PDFUnit uses this file for tests.
@Test
public void verifyNewLogoOnEveryPage() throws Exception {
String filename = "documentUnderTest.pdf";
String newLogoImage = "images/newLogo.png";
AssertThat.document(filename)
.containsImage(newLogoImage)
;
}