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

    GMLStreamReader gmlReader = getParser( "OrientableCurve.gml" );
    XMLStreamReader xmlReader = gmlReader.getXMLReader();
    Assert.assertEquals( XMLStreamConstants.START_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "OrientableCurve" ), xmlReader.getName() );
    Curve curve = (Curve) gmlReader.readGeometry();
    Assert.assertEquals( XMLStreamConstants.END_ELEMENT, xmlReader.getEventType() );
    Assert.assertEquals( new QName( "http://www.opengis.net/gml", "OrientableCurve" ), xmlReader.getName() );
    Assert.assertEquals( 2, curve.getCurveSegments().size() );
    Assert.assertEquals( ARC, curve.getCurveSegments().get( 0 ).getSegmentType() );
    Assert.assertEquals( LINE_STRING_SEGMENT, curve.getCurveSegments().get( 1 ).getSegmentType() );
}