@Test
public void parseEnvelopeCoordinates()
                        throws XMLStreamException, FactoryConfigurationError, IOException, UnknownCRSException {

    GMLStreamReader gmlReader = getParser( "Envelope_coordinates.gml" );
    XMLStreamReaderWrapper xmlReader = new XMLStreamReaderWrapper( gmlReader.getXMLReader(), null );
    Assert.assertEquals( XMLStreamConstants.START_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "Envelope" ), xmlReader.getName() );
    Envelope envelope = gmlReader.getGeometryReader().parseEnvelope( xmlReader, null );
    Assert.assertEquals( XMLStreamConstants.END_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "Envelope" ), xmlReader.getName() );
    Assert.assertEquals( 11.0, envelope.getMin().get0(), DELTA );
    Assert.assertEquals( 22.0, envelope.getMin().get1(), DELTA );
    Assert.assertEquals( 44.0, envelope.getMax().get0(), DELTA );
    Assert.assertEquals( 88.0, envelope.getMax().get1(), DELTA );
    Assert.assertEquals( CRSManager.lookup( "EPSG:4326" ), envelope.getCoordinateSystem() );
}