### Question:
Line { @Override public String toString() { return Objects.toStringHelper(Line.class) .add("lineNumber", lineNumber) .add("offset", offset) .add("text", ToStringHelper.toStringValue(text)) .toString(); } Line(int lineNumber, int offset, String text); boolean isEmpty(); String getText(); int getOffset(); int getLineNumber(); Line segment(int offset, int length); Locator toLocator(); @Override String toString();  }### Answer:
@Test public void toStringTest() { assertEquals("Line{lineNumber=1, offset=15, text=1}", new Line(1, 15, "1").toString()); assertEquals("Line{lineNumber=2, offset=0, text=\\t\\r\\nabc}", new Line(2, 0, "\t\r\nabc").toString()); assertEquals("Line{lineNumber=0, offset=0, text=aaaaaaaaaaaaaaaaaaaa...}", new Line(0, 0, Strings.repeat("a", 100)).toString()); }