Point implements Comparable<Point> { @Override public String toString() { return String.format("[%1$,.2f, %2$,.2f]", this.x, this.y); } Point(double x, double y);  Point(Point point);  Point(String point); double getX(); double getY(); double distance(Point point); void moveToward(Point point, double distance); void pathToward(Point destination, double distance); boolean nextStep(Point point, double distance); @Override String toString(); String toNeatString(); @Override boolean equals(Object object); boolean lazyEquals(Object object); @Override int hashCode(); @Override int compareTo(Point point);  }
@Test public void toStringTest() { Assert.assertEquals("Error calculating string (PT1).", "[0.00, 0.00]", testPoint1.toString()); Assert.assertEquals("Error calculating string (PT2).", "[1.00, 2.00]", testPoint2.toString()); Assert.assertEquals("Error calculating string (PT3).", "[1.00, 2.00]", testPoint3.toString()); Assert.assertEquals("Error calculating string (PT4).", "[0.00, 0.00]", testPoint4.toString()); Assert.assertEquals("Error calculating string (PT5).", "[3.00, 4.00]", testPoint5.toString()); }