mapParams.postConstruct();
ScalebarAttribute scalebarAttibute = new ScalebarAttribute();
scalebarAttibute.setWidth(300);
scalebarAttibute.setHeight(40);
ScalebarAttributeValues scalebarParams = scalebarAttibute.createValue(null);
ScalebarGraphic scalebar = new ScalebarGraphic();
URI file = scalebar.render(mapParams, scalebarParams, folder.getRoot(), this.template);
// Files.copy(new File(file), new File("/tmp/" + getClass().getSimpleName() + "expected-scalebar-graphic-dpi.tiff"));
new ImageSimilarity(new File(file), 4).assertSimilarity(getFile("expected-scalebar-graphic-dpi.tiff"), 15);