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

    GMLStreamReader gmlReader = getParser( "MultiGeometry.gml" );
    XMLStreamReader xmlReader = gmlReader.getXMLReader();
    Assert.assertEquals( XMLStreamConstants.START_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "MultiGeometry" ), xmlReader.getName() );
    MultiGeometry<?> aggregate = (MultiGeometry<?>) gmlReader.readGeometry();
    Assert.assertEquals( XMLStreamConstants.END_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "MultiGeometry" ), xmlReader.getName() );
    Assert.assertEquals( 5, aggregate.size() );
    Assert.assertTrue( aggregate.get( 0 ) instanceof Point );
    Assert.assertTrue( aggregate.get( 1 ) instanceof Point );
    Assert.assertTrue( aggregate.get( 2 ) instanceof Curve );
    Assert.assertTrue( aggregate.get( 3 ) instanceof MultiSurface<?> );
    Assert.assertTrue( aggregate.get( 4 ) instanceof CompositeSolid );
}