Template template = cfg.getTemplate("OpenLayersMapTemplate.ftl");
assertNotNull(template);
GetMapRequest request = createGetMapRequest(MockData.BASIC_POLYGONS);
WMSMapContext mapContext = new WMSMapContext();
mapContext.addLayer(createMapLayer(MockData.BASIC_POLYGONS));
mapContext.setRequest(request);
mapContext.setMapWidth(256);
mapContext.setMapHeight(256);
ByteArrayOutputStream output = new ByteArrayOutputStream();
HashMap map = new HashMap();
map.put("context", mapContext);
map.put("request", mapContext.getRequest());
map.put("maxResolution", new Double(0.0005)); // just a random number
map.put("baseUrl", "http://localhost:8080/geoserver/wms");
map.put("parameters", new ArrayList());
map.put("layerName", "layer");
map.put("units", "degrees");