// namespaces.put("atom", "http://purl.org/atom/ns#");
// XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces));
MapLayerInfo layer = mockData.addFeatureTypeLayer("TestPoints", Point.class);
mapContext = new WMSMapContext();
GetMapRequest request = mockData.createRequest();
request.setLayers(new MapLayerInfo[] { layer });
FeatureSource<SimpleFeatureType, SimpleFeature> featureSource;
featureSource = (FeatureSource<SimpleFeatureType, SimpleFeature>) ((FeatureTypeInfo)layer.getFeature()).getFeatureSource(null, null);
mapLayer = new DefaultMapLayer(featureSource, mockData.getDefaultStyle().getStyle());
MockHttpServletRequest httpreq = (MockHttpServletRequest) request.getHttpServletRequest();
httpreq.setScheme("http");
httpreq.setServerName("geoserver.org");
httpreq.setServerPort(8181);
httpreq.setContextPath("/geoserver");
mapContext.setRequest(request);