### Question:
Point implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Point other = (Point) obj; if (xCoord != other.xCoord) return false; if (yCoord != other.yCoord) return false; return true; } Point(int x, int y); int getX(); Point withX(int xCoord); int getY(); Point withY(int yCoord); int[] toArray(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); Point add(Point other); Point scale(int scaleFactor); Point scale(int scaleFactorX, int scaleFactorY); Point mirror(); Point transform(ManhattanOrientation orientation);  }### Answer:
@Test public void testEquals() { Point p1 = new Point(1, 2); Point p2 = new Point(1, 2); Point p3 = new Point(1, 4); Assert.assertTrue(p1.equals(p1)); Assert.assertTrue(p1.equals(p2)); Assert.assertFalse(p1.equals(p3)); Assert.assertFalse(p1.equals(null)); }