@Test
public void closeDialogViaConnection() throws Exception {

    Connection conn = showDialog(TITLE).get();
    conn.closeDialog();
    
    windowFixture.robot.waitForIdle();
    windowFixture.requireNotVisible();
    assertFalse(conn.isOpen());
}