public void imageSpec_shouldAlsoGenerate_imageComparisonMap() {
MockedPage page = page(new HashMap<String, PageElement>() {{
put("object", element(100, 90, 100, 40));
}}, imageComparisonTestScreenshot);
PageSpec pageSpec = createMockedPageSpec(page);
PageValidation validation = new PageValidation(null, page, pageSpec, null, null);
ValidationError error = validation.check("object", specImage(asList("/imgs/button-sample-incorrect.png"), 600, PIXEL_UNIT, 0, 10));
assertThat("Comparison map should not be null", error.getImageComparison().getComparisonMap(), is(notNullValue()));