@Test
public void testInvertOrientationOfACurveWithMultipleSegments() {

    Curve curve = createCurve();
    Curve invertedCurve = GeometryFixer.invertOrientation( curve );
    List<CurveSegment> curveSegments = invertedCurve.getCurveSegments();
    assertThat( curveSegments.size(), is( 3 ) );
    CurveSegment firstCurveSegment = curveSegments.get( 0 );
    CurveSegment secondCurveSegment = curveSegments.get( 1 );
    CurveSegment thirdCurveSegment = curveSegments.get( 2 );
    assertThat( firstCurveSegment.getSegmentType(), is( LINE_STRING_SEGMENT ) );
    assertThat( secondCurveSegment.getSegmentType(), is( ARC ) );
    assertThat( thirdCurveSegment.getSegmentType(), is( LINE_STRING_SEGMENT ) );
    assertTrue( invertedCurve.isClosed() );
}