Parser parser = new Parser(new WCSEOConfiguration());
@Test
public void testParseDescribeCoverage() throws Exception {
String capRequestPath = "requestDescribeEOCoverageSet.xml";
DescribeEOCoverageSetType dcs = (DescribeEOCoverageSetType) parser.parse(getClass()
.getResourceAsStream(capRequestPath));
assertEquals("WCS", dcs.getService());
assertEquals("2.0.0", dcs.getVersion());
List<String> ids = dcs.getEoId();
assertEquals(1, ids.size());
assertEquals("someDatasetSeries", ids.get(0));
assertEquals(100, dcs.getCount());
EList<Section> sections = dcs.getSections().getSection();
assertEquals(2, sections.size());
assertEquals(Section.COVERAGEDESCRIPTIONS, sections.get(0));
assertEquals(Section.DATASETSERIESDESCRIPTIONS, sections.get(1));
EList<DimensionTrimType> trims = dcs.getDimensionTrim();
assertEquals(3, trims.size());
DimensionTrimType lonTrim = trims.get(0);
assertEquals("Long", lonTrim.getDimension());
assertEquals("16", lonTrim.getTrimLow());
assertEquals("18", lonTrim.getTrimHigh());