}
@Test
public void testGMLAttributeMapping() throws Exception {
WFSInfo wfs = getWFS();
GMLInfo gml = wfs.getGML().get(WFSInfo.Version.V_11);
gml.setOverrideGMLAttributes(false);
getGeoServer().save(wfs);
Document dom = getAsDOM("ows?service=WFS&version=2.0.0&request=GetFeature" +
"&typename=" + getLayerId(MockData.PRIMITIVEGEOFEATURE));
XMLAssert.assertXpathExists("//gml:name", dom);
XMLAssert.assertXpathExists("//gml:description", dom);
XMLAssert.assertXpathNotExists("//sf:name", dom);
XMLAssert.assertXpathNotExists("//sf:description", dom);
gml.setOverrideGMLAttributes(true);
getGeoServer().save(wfs);
dom = getAsDOM("ows?service=WFS&version=2.0.0&request=GetFeature" +
"&typename=" + getLayerId(MockData.PRIMITIVEGEOFEATURE));
XMLAssert.assertXpathNotExists("//gml:name", dom);
XMLAssert.assertXpathNotExists("//gml:description", dom);
XMLAssert.assertXpathExists("//sf:name", dom);
XMLAssert.assertXpathExists("//sf:description", dom);
gml.setOverrideGMLAttributes(false);
getGeoServer().save(wfs);
}