public void testRenderDoubleDpi() throws Exception {
MapAttribute mapAttribute = new MapAttribute();
mapAttribute.setWidth(780);
mapAttribute.setHeight(330);
mapAttribute.setMaxDpi(600.0);
MapAttributeValues mapParams = mapAttribute.createValue(null);
// use a dpi of 144, this will create a scale bar graphic of 600x80 px
mapParams.dpi = 144;
mapParams.center = new double[]{-8235878.4938425, 4979784.7605681};
mapParams.scale = 26000.0;
mapParams.layers = new PJsonArray(null, new JSONArray(), "");