// namespaces.put("xlink", "http://www.w3.org/1999/xlink");
// namespaces.put(TEST_NS_PREFIX, TEST_NAMESPACE);
// XMLUnit.setXpathNamespaceContext(new SimpleNamespaceContext(namespaces));
XPATH = XMLUnit.newXpathEngine();
GeoServerImpl geoServerImpl = new GeoServerImpl();
catalog = new CatalogImpl();
geoServerImpl.setCatalog(catalog);
NamespaceInfoImpl ns = new NamespaceInfoImpl();
ns.setPrefix(TEST_NS_PREFIX);
ns.setURI(TEST_NAMESPACE);
WorkspaceInfoImpl workspace = new WorkspaceInfoImpl();
workspace.setId("fakeWs");
workspace.setName("fakeWs");
DataStoreInfoImpl dataStoreInfo = new DataStoreInfoImpl(catalog);
dataStoreInfo.setName("fakeDs");
dataStoreInfo.setId("fakeDs");
dataStoreInfo.setWorkspace(workspace);
featureTypeInfo = new FeatureTypeInfoImpl(catalog);
featureTypeInfo.setNamespace(ns);
featureTypeInfo.setName("states");
featureTypeInfo.setStore(dataStoreInfo);
vectorLayerInfo = new LayerInfoImpl();
vectorLayerInfo.setResource(featureTypeInfo);
vectorLayerInfo.setId("states");
vectorLayerInfo.setName("states");
catalog.add(ns);
catalog.add(workspace);
catalog.add(dataStoreInfo);
catalog.add(featureTypeInfo);
catalog.add(vectorLayerInfo);
CoverageStoreInfoImpl coverageStoreInfo = new CoverageStoreInfoImpl(catalog);
coverageStoreInfo.setId("coverageStore");
coverageStoreInfo.setName("coverageStore");
coverageStoreInfo.setWorkspace(workspace);
coverageInfo = new CoverageInfoImpl(catalog);
coverageInfo.setNamespace(ns);
coverageInfo.setName("fakeCoverage");
coverageInfo.setStore(coverageStoreInfo);
coverageLayerInfo = new LayerInfoImpl();
coverageLayerInfo.setResource(coverageInfo);
coverageLayerInfo.setId("fakeCoverage");
coverageLayerInfo.setName("fakeCoverage");
catalog.add(coverageStoreInfo);
catalog.add(coverageInfo);
catalog.add(coverageLayerInfo);
geoServerImpl.add(new WMSInfoImpl());
WMS wms = new WMS(geoServerImpl);
request = new DescribeLayerRequest(wms);
request.setBaseUrl("http://localhost:8080/geoserver");
request.setVersion("1.1.1");
}