@Test
public void testIsClockwise() {

    Point p0 = geomFac.createPoint( null, new double[] { -2, 0 }, null );
    Point p1 = geomFac.createPoint( null, new double[] { 0, 2 }, null );
    Point p2 = geomFac.createPoint( null, new double[] { 2, 0 }, null );
    Assert.assertTrue( linearizer.isClockwise( p0, p1, p2 ) );
    Assert.assertFalse( linearizer.isClockwise( p0, p2, p1 ) );
    p0 = geomFac.createPoint( null, new double[] { -2, 0 }, null );
    p1 = geomFac.createPoint( null, new double[] { 0, -2 }, null );
    p2 = geomFac.createPoint( null, new double[] { 2, 0 }, null );
    Assert.assertFalse( linearizer.isClockwise( p0, p1, p2 ) );
}