@Test
public void testEquals() {

    RectangularBox eq1 = RectangularBox.newInstance(0, 1, 10, 9);
    RectangularBox eq2 = RectangularBox.newInstanceFromPoints(new Point(1, 0), new Point(9, 10));
    RectangularBox eq3 = RectangularBox.newInstance(0, 1, 10, 9);
    RectangularBox diff = RectangularBox.newInstance(0, 2, 10, 9);
    TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff);
}