@Override
    public int compareTo(Point point) {
        if (this.x > point.x) {
            return 1;
        } else if (this.x < point.x) {
            return -1;
        } else if (this.y > point.y) {
            return 1;
        } else if (this.y < point.y) {
            return -1;
        }
        return 0;
    }
@Test
    public void compareToTest() {
        Point point1 = new Point(1, 2);
        Point point2 = new Point(1, 2);
        Point point3 = new Point(1, 1);
        Point point4 = new Point(2, 2);

        Assert.assertEquals(0, point1.compareTo(point2));

        TestUtils.notCompareToTest(point1, point3);
        TestUtils.notCompareToTest(point1, point4);
    }