### Question:
Line { public String getText() { return text; } 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 getText() { assertEquals("abc", new Line(1, 0, "abc").getText()); }