### Question:
Coord implements Localizable { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final Coord other = (Coord) object; return Double.compare(x, other.x) == 0 && Double.compare(y, other.y) == 0; } Coord();  Coord(double x, double y); void translate(double vx, double vy); void set(double x, double y); void setX(double x); void setY(double y); @Override double getX(); @Override double getY(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testEquals() { final Coord coord = new Coord(); assertEquals(coord, coord); assertEquals(new Coord(), new Coord()); assertEquals(new Coord(1.5, 2.5), new Coord(1.5, 2.5)); assertNotEquals(new Coord(), null); assertNotEquals(new Coord(), new Object()); assertNotEquals(new Coord(1.0, 0.0), new Coord(1.0, 1.0)); assertNotEquals(new Coord(0.0, 1.0), new Coord(1.0, 0.0)); assertNotEquals(new Coord(), new Coord(1.0, 1.0)); }