}
@Test
public void testParseGetCoverageTrimmingSlicing() throws Exception {
String capRequestPath = "requestGetCoverageTrimmingSlicing.xml";
GetCoverageType gc = (GetCoverageType) parser.parse(getClass()
.getResourceAsStream(capRequestPath));
assertEquals("WCS", gc.getService());
assertEquals("2.0.1", gc.getVersion());
// coverage id
assertEquals("C0001", gc.getCoverageId());
// trimming
EList<DimensionSubsetType> dss = gc.getDimensionSubset();
assertEquals(2, dss.size());
DimensionTrimType dt = (DimensionTrimType) dss.get(0);
assertEquals("Long", dt.getDimension());
assertEquals("20", dt.getTrimLow());
assertEquals("29", dt.getTrimHigh());
DimensionSliceType ds = (DimensionSliceType) dss.get(1);
assertEquals("Lat", ds.getDimension());
assertEquals("1", ds.getSlicePoint());
// format
assertEquals("application/gml+xml", gc.getFormat());
assertEquals("multipart/related", gc.getMediaType());
}