@Test
public void getTextFromConnection() throws Exception {

    final String text = getConcatenatedText(String.format("%n"));
    Connection conn = showDialog(TITLE, text).get();
    assertEquals(text, conn.getText());
}