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

    BSpline arc = (BSpline) getParser().parseCurveSegment( getReader( "BSpline.gml" ),
                                                           CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 4, arc.getControlPoints().size() );
    Assert.assertEquals( 2.0, arc.getControlPoints().get( 0 ).get0() );
    Assert.assertEquals( 1.0, arc.getControlPoints().get( 0 ).get1() );
    Assert.assertEquals( -2.0, arc.getControlPoints().get( 1 ).get0() );
    Assert.assertEquals( 2.0, arc.getControlPoints().get( 1 ).get1() );
    Assert.assertEquals( -4.0, arc.getControlPoints().get( 2 ).get0() );
    Assert.assertEquals( 3.0, arc.getControlPoints().get( 2 ).get1() );
    Assert.assertEquals( -6.0, arc.getControlPoints().get( 3 ).get0() );
    Assert.assertEquals( 4.0, arc.getControlPoints().get( 3 ).get1() );
    Assert.assertEquals( 4, arc.getPolynomialDegree() );
    Assert.assertEquals( 2, arc.getKnots().size() );
    Assert.assertEquals( 1.0, arc.getKnots().get( 0 ).getValue() );
    Assert.assertEquals( 4, arc.getKnots().get( 0 ).getMultiplicity() );
    Assert.assertEquals( 5.0, arc.getKnots().get( 0 ).getWeight() );
    Assert.assertEquals( 2.0, arc.getKnots().get( 1 ).getValue() );
    Assert.assertEquals( 5, arc.getKnots().get( 1 ).getMultiplicity() );
    Assert.assertEquals( 1.0, arc.getKnots().get( 1 ).getWeight() );
}