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

    GMLStreamReader gmlReader = getParser( "MultiPolygon.gml" );
    XMLStreamReader xmlReader = gmlReader.getXMLReader();
    Assert.assertEquals( XMLStreamConstants.START_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "MultiPolygon" ), xmlReader.getName() );
    MultiPolygon aggregate = (MultiPolygon) gmlReader.readGeometry();
    Assert.assertEquals( XMLStreamConstants.END_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "MultiPolygon" ), xmlReader.getName() );
    Assert.assertEquals( 2, aggregate.size() );
    Assert.assertEquals( SurfaceType.Polygon, aggregate.get( 0 ).getSurfaceType() );
    Assert.assertEquals( SurfaceType.Polygon, aggregate.get( 1 ).getSurfaceType() );
}