### Question:
Line { @Override public String toString() { return new StringBuilder(MIN_LENGHT).append(getClass().getSimpleName()) .append(" [x1=") .append(x1) .append(", y1=") .append(y1) .append(", x2=") .append(x2) .append(", y2=") .append(y2) .append("]") .toString(); } Line();  Line(double x1, double y1, double x2, double y2); void set(double x1, double y1, double x2, double y2); double getX1(); double getX2(); double getY1(); double getY2(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testToString() { assertEquals("Line [x1=1.5, y1=2.5, x2=3.5, y2=4.5]", new Line(1.5, 2.5, 3.5, 4.5).toString()); }