@Test
public void testInvertOrientationOfACurveWithOneSegment() {

    Curve curve = createSimpleCurve();
    Curve invertedCurve = GeometryFixer.invertOrientation( curve );
    List<CurveSegment> curveSegments = invertedCurve.getCurveSegments();
    assertThat( curveSegments.size(), is( 1 ) );
    CurveSegment firstCurveSegment = curveSegments.get( 0 );
    assertThat( firstCurveSegment.getSegmentType(), is( LINE_STRING_SEGMENT ) );
    assertThat( firstCurveSegment.getStartPoint().get0(), is( 553976.438 ) );
    assertThat( firstCurveSegment.getStartPoint().get1(), is( 5937165.552 ) );
    assertThat( firstCurveSegment.getEndPoint().get0(), is( 553978.334 ) );
    assertThat( firstCurveSegment.getEndPoint().get1(), is( 5937293.390 ) );
}