"<ows:AcceptFormats>" + //
" <ows:OutputFormat>text/xml</ows:OutputFormat>" + //
"</ows:AcceptFormats>" + //
"</wcs:GetCapabilities>";
// System.out.println(request);
GetCapabilitiesType cap = (GetCapabilitiesType) reader.read(null,
new StringReader(request), null);
assertEquals("WCS", cap.getService());
assertEquals(1, cap.getAcceptVersions().getVersion().size());
assertEquals("1.0.0", (String) cap.getAcceptVersions().getVersion().get(0));
assertEquals(1, cap.getSections().getSection().size());
assertEquals("Section1", (String) cap.getSections().getSection().get(0));
assertEquals(1, cap.getAcceptFormats().getOutputFormat().size());
assertEquals("text/xml", (String) cap.getAcceptFormats().getOutputFormat().get(0));
}