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

    ArcByCenterPoint arc = (ArcByCenterPoint) getParser().parseCurveSegment( getReader( "ArcByCenterPoint.gml" ),
                                                                             CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 2, arc.getMidPoint().getCoordinateDimension() );
    Assert.assertEquals( 47.0, arc.getMidPoint().get0() );
    Assert.assertEquals( 11.0, arc.getMidPoint().get1() );
    Assert.assertEquals( 1.0, arc.getRadius( null ).getValueAsDouble() );
    Assert.assertEquals( "whatever#metres", arc.getRadius( null ).getUomUri() );
    Assert.assertEquals( 180.0, arc.getStartAngle().getValueAsDouble() );
    Assert.assertEquals( "whatever#degrees", arc.getStartAngle().getUomUri() );
    Assert.assertEquals( 360.0, arc.getEndAngle().getValueAsDouble() );
    Assert.assertEquals( "whatever#degrees", arc.getEndAngle().getUomUri() );
}