// Map<String, String> namespaces = new HashMap<String, String>();
// namespaces.put("atom", "http://purl.org/atom/ns#");
// XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces));
MapLayerInfo layer = mockData.addFeatureTypeLayer("TestPoints", Point.class);
WMSMapContext mapContext = new WMSMapContext();
request = mockData.createRequest();
request.setLayers(new MapLayerInfo[] { layer });
request.setFormatOptions(Collections.singletonMap("relLinks", "true"));
MockHttpServletRequest httpreq = (MockHttpServletRequest) request.getHttpServletRequest();
httpreq.setScheme("http");
httpreq.setServerName("geoserver.org");
httpreq.setServerPort(8181);
httpreq.setContextPath("/geoserver");
mapContext.setRequest(request);
}