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

    CubicSpline segment = (CubicSpline) getParser().parseCurveSegment( getReader( "CubicSpline.gml" ),
                                                                       CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 3, segment.getControlPoints().size() );
    Assert.assertEquals( -2.0, segment.getControlPoints().get( 0 ).get0() );
    Assert.assertEquals( 0.0, segment.getControlPoints().get( 0 ).get1() );
    Assert.assertEquals( -4.0, segment.getControlPoints().get( 1 ).get0() );
    Assert.assertEquals( 0.0, segment.getControlPoints().get( 1 ).get1() );
    Assert.assertEquals( -6.0, segment.getControlPoints().get( 2 ).get0() );
    Assert.assertEquals( 1.0, segment.getControlPoints().get( 2 ).get1() );
    Assert.assertEquals( 0.0, segment.getVectorAtStart().get0() );
    Assert.assertEquals( -1.0, segment.getVectorAtStart().get1() );
    Assert.assertEquals( -1.0, segment.getVectorAtEnd().get0() );
    Assert.assertEquals( 1.0, segment.getVectorAtEnd().get1() );
}