@Test
public void listenerInformedWhenTextIsUpdated() throws Exception {

    Connection conn = showDialog(TITLE).get();
    final CountDownLatch latch = new CountDownLatch(1);
    conn.addListener(new TextReporterListener() {
        @Override
        public void onReporterClosed() {}
        @Override
        public void onReporterUpdated() {
            latch.countDown();
        }
    });
    
    conn.append(TEXT[0]);
    assertTrue( latch.await(LISTENER_TIMEOUT, TimeUnit.MILLISECONDS) );
}