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

    OffsetCurve segment = (OffsetCurve) getParser().parseCurveSegment( getReader( "OffsetCurve.gml" ),
                                                                       CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 1.0, segment.getDistance( null ).getValueAsDouble() );
    Assert.assertEquals( 0.0, segment.getDirection().get0() );
    Assert.assertEquals( 1.0, segment.getDirection().get1() );
}