getFile(JasperReportOutputFormatSimpleMapTest.class, BASE_DIR), getTaskDirectory()).print;
BufferedImage reportImage = ImageSimilarity.exportReportToImage(print, 0);
// note that we are using a sample size of 50, because the image is quite big.
// otherwise small differences are not detected!
new ImageSimilarity(reportImage, 50).assertSimilarity(getFile(BASE_DIR + "expectedReport.png"), 10);
}