### Question:
Point implements Serializable { public Point add(Point other) { return new Point(this.xCoord + other.xCoord, this.yCoord + other.yCoord); } 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 testAdd() { int x1 = 2, y1 = 3, x2 = 7, y2 = 10; Point pt = new Point(x1, y1).add(new Point(x2, y2)); Assert.assertEquals(x1 + x2, pt.getX()); Assert.assertEquals(y1 + y2, pt.getY()); }