@Test public void testRootElement() throws Exception { GetCapabilitiesTransformer tr; tr = new GetCapabilitiesTransformer(wmsConfig, baseUrl, mapFormats, legendFormats, null); Document dom = WMSTestSupport.transform(req, tr); Element root = dom.getDocumentElement(); assertEquals("WMT_MS_Capabilities", root.getNodeName()); assertEquals("1.1.1", root.getAttribute("version")); assertEquals("0", root.getAttribute("updateSequence")); geosInfo.setUpdateSequence(10); tr = new GetCapabilitiesTransformer(wmsConfig, baseUrl, mapFormats, legendFormats, null); dom = WMSTestSupport.transform(req, tr); root = dom.getDocumentElement(); assertEquals("10", root.getAttribute("updateSequence")); }