@Test
public void testEquals() {
double ulx = 11.0;
double uly = 12.0;
double lrx = 22.0;
double lry = 23.0;
Bounds b1 = Bounds.of(ulx, uly, lrx, lry);
Bounds b2 = Bounds.of(ulx, uly, lrx, lry);
assertEquals(b1, b2);
assertEquals(b1.hashCode(), b2.hashCode());
b1 = new Bounds().upperLeft(Point.of(ulx, uly));
b2 = new Bounds().upperLeft(Point.of(ulx, uly));
assertEquals(b1, b2);
b1 = new Bounds().lowerRight(Point.of(ulx, uly));
b2 = new Bounds().lowerRight(Point.of(ulx, uly));
assertEquals(b1, b2);
b1 = new Bounds().upperLeft(Point.of(ulx, uly));
b2 = new Bounds().upperLeft(Point.of(lrx, lry));
assertNotEquals(b1, b2);
}