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

    GMLStreamReader gmlReader = getParser( "Tin.gml" );
    XMLStreamReader xmlReader = gmlReader.getXMLReader();
    Assert.assertEquals( XMLStreamConstants.START_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "Tin" ), xmlReader.getName() );
    Tin surface = (Tin) gmlReader.readGeometry();
    Assert.assertEquals( XMLStreamConstants.END_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "Tin" ), xmlReader.getName() );
    Assert.assertEquals( SurfaceType.Tin, surface.getSurfaceType() );
    Assert.assertEquals( 2, surface.getStopLines().size() );
    Assert.assertEquals( 1, surface.getBreakLines().size() );
    Assert.assertEquals( 15.0, surface.getMaxLength( null ).getValueAsDouble(), DELTA );
    Assert.assertEquals( 3, surface.getControlPoints().size() );
    Assert.assertEquals( 3.0, surface.getControlPoints().get( 2 ).get0(), DELTA );
    Assert.assertEquals( 4.0, surface.getControlPoints().get( 2 ).get1(), DELTA );
}