    @Test
    public void testCompareEpsilonStatic() {

        assertEquals(-1, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1.1, 2), 0.01));
        assertEquals(-1, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1, 2.1), 0.01));
        assertEquals(+1, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(0.9, 2), 0.01));
        assertEquals(+1, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1, 1.9), 0.01));

        assertEquals(0, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1.1, 2), 0.5));
        assertEquals(0, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1, 2.1), 0.5));
        assertEquals(0, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(0.9, 2), 0.5));
        assertEquals(0, PointDComparatorY.compareEpsilon(new PointD(1, 2), new PointD(1, 1.9), 0.5));
    }