@Test
public void testAddingReallyLongLineOfText() {

  final String initialLength = StringUtils.rightPad("Initial string", LogTextArea
      .MAX_STRING_LENGTH - 3, "Long\n");
  logTextArea.addLineToLog(initialLength);
  assertEquals("Text was not added to logger", initialLength + "\n", logTextArea.getText());
}