@Test
public void appendNewline() throws Exception {

    Connection conn = showDialog(TITLE, TEXT[0]).get();
    
    conn.appendNewline();
    conn.appendNewline();
    conn.append(TEXT[1]);
    conn.appendNewline();
    
    windowFixture.robot.waitForIdle();
    String displayedText = windowFixture.textBox().text();
    String expectedText = String.format("%s%n%n%s%n", TEXT[0], TEXT[1]);
    assertEquals(expectedText, displayedText);
}