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

    Clothoid segment = (Clothoid) getParser().parseCurveSegment( getReader( "Clothoid.gml" ),
                                                                 CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 47.0, segment.getReferenceLocation().getLocation().get0() );
    Assert.assertEquals( 11.0, segment.getReferenceLocation().getLocation().get1() );
    Assert.assertEquals( 13.0, segment.getReferenceLocation().getLocation().get2() );
    Assert.assertEquals( 2, segment.getReferenceLocation().getRefDirections().size() );
    Assert.assertEquals( 3.0, segment.getReferenceLocation().getRefDirections().get( 0 ).get0() );
    Assert.assertEquals( 4.0, segment.getReferenceLocation().getRefDirections().get( 0 ).get1() );
    Assert.assertEquals( 8.0, segment.getReferenceLocation().getRefDirections().get( 0 ).get2() );
    Assert.assertEquals( 5.0, segment.getReferenceLocation().getRefDirections().get( 1 ).get0() );
    Assert.assertEquals( 6.0, segment.getReferenceLocation().getRefDirections().get( 1 ).get1() );
    Assert.assertEquals( 9.0, segment.getReferenceLocation().getRefDirections().get( 1 ).get2() );
    Assert.assertEquals( 2, segment.getReferenceLocation().getInDimension() );
    Assert.assertEquals( 3, segment.getReferenceLocation().getOutDimension() );
    Assert.assertEquals( 0.9, segment.getScaleFactor() );
    Assert.assertEquals( -2.5, segment.getStartParameter() );
    Assert.assertEquals( 3.0, segment.getEndParameter() );
}