double shift = env.getWidth() / 6;
env = new Envelope(env.getMinX() - shift, env.getMaxX() + shift,
env.getMinY() - shift, env.getMaxY() + shift);
final WMSMapContext map = new WMSMapContext();
int w = 400;
int h = (int) Math.round((env.getHeight() * w) / env.getWidth());
map.setMapWidth(w);
map.setMapHeight(h);
map.setBgColor(BG_COLOR);
map.setTransparent(true);
map.addLayer(ds.getFeatureSource(FORESTS_TYPE),
getDefaultStyle(FORESTS_TYPE));
map.addLayer(ds.getFeatureSource(LAKES_TYPE),
getDefaultStyle(LAKES_TYPE));
map.addLayer(ds.getFeatureSource(STREAMS_TYPE),
getDefaultStyle(STREAMS_TYPE));
map.addLayer(ds.getFeatureSource(NAMED_PLACES_TYPE),
getDefaultStyle(NAMED_PLACES_TYPE));
map.addLayer(ds.getFeatureSource(ROAD_SEGMENTS_TYPE),
getDefaultStyle(ROAD_SEGMENTS_TYPE));
map.addLayer(ds.getFeatureSource(PONDS_TYPE),
getDefaultStyle(PONDS_TYPE));
map.addLayer(ds.getFeatureSource(BUILDINGS_TYPE),
getDefaultStyle(BUILDINGS_TYPE));
map.addLayer(ds.getFeatureSource(DIVIDED_ROUTES_TYPE),
getDefaultStyle(DIVIDED_ROUTES_TYPE));
map.addLayer(ds.getFeatureSource(BRIDGES_TYPE),
getDefaultStyle(BRIDGES_TYPE));
map.addLayer(ds.getFeatureSource(MAP_NEATLINE_TYPE),
getDefaultStyle(MAP_NEATLINE_TYPE));
map.setAreaOfInterest(env);
this.rasterMapProducer.setOutputFormat("image/png");
this.rasterMapProducer.produceMap(map);
assertNotBlank("testBlueLake", this.rasterMapProducer);