### Question:
Point implements Serializable { public Point mirror() { return new Point(this.yCoord, this.xCoord); } 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 testMirror() { int x = 2, y = 7; Point pt = new Point(x, y).mirror(); Assert.assertEquals(y, pt.getX()); Assert.assertEquals(x, pt.getY()); }