@Test
public void test4326wms11() throws Exception {

    WMSCoverageReader reader = getReader4326wms11();
    GeneralEnvelope original = reader.getOriginalEnvelope();
    CoordinateReferenceSystem wgs84 = CRS.decode("EPSG:4326", true);
    assertTrue(CRS.equalsIgnoreMetadata(wgs84, original.getCoordinateReferenceSystem()));
    // build a getmap request and check it
    ReferencedEnvelope worldEnvelope = new ReferencedEnvelope(-180, 180, -90, 90, wgs84);
    GridGeometry2D gg = new GridGeometry2D(new GridEnvelope2D(0, 0, 180, 90), worldEnvelope);
    final Parameter<GridGeometry2D> ggParam = (Parameter<GridGeometry2D>) AbstractGridFormat.READ_GRIDGEOMETRY2D
            .createValue();
    ggParam.setValue(gg);
    GridCoverage2D coverage = reader.read(new GeneralParameterValue[] { ggParam });
    assertTrue(CRS.equalsIgnoreMetadata(wgs84, coverage.getCoordinateReferenceSystem()));
    assertEquals(worldEnvelope, new ReferencedEnvelope(coverage.getEnvelope()));
}