public void blockUntilDone(final long timeout, final TimeUnit unit) {
        try {
            phaser.awaitAdvanceInterruptibly(0, timeout, unit);
        } catch (InterruptedException | TimeoutException e) {
            throw new RuntimeException("Test scenario never reached 'done' state");
        }
    }
A monitor that is used to flag when this dummy has finished trying to set up a connection to Openfire. This is to
help the unit test know when it can start verifying the test outcome.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteInitiatingServerDummy.java