}
@Test
public void testParseGetCoverageTrimming() throws Exception {
String capRequestPath = "requestGetCoverageTrimming.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 dt1 = (DimensionTrimType) dss.get(0);
assertEquals("Long", dt1.getDimension());
assertEquals("1", dt1.getTrimLow());
assertEquals("2", dt1.getTrimHigh());
DimensionTrimType dt2 = (DimensionTrimType) dss.get(1);
assertEquals("Lat", dt2.getDimension());
assertEquals("1", dt2.getTrimLow());
assertEquals("2", dt2.getTrimHigh());
// format
assertEquals("application/gml+xml", gc.getFormat());
assertEquals("multipart/related", gc.getMediaType());
}