public synchronized void stopDialbackAcceptThread() throws InterruptedException
    {
        if (dialbackAcceptThread == null) {
            return;
        }
        dialbackAcceptor.stop();
        dialbackAcceptThread.interrupt();
        dialbackAcceptThread.join(SO_TIMEOUT.multipliedBy(20).toMillis());

        final Thread.State finalState = dialbackAcceptThread.getState();
        if (finalState != Thread.State.TERMINATED) {
            if (doLog) System.err.println("Dialback Accept thread not terminating after it was stopped. Current state: " + finalState);
            if (doLog) Arrays.stream(dialbackAcceptThread.getStackTrace()).forEach(System.err::println);
        }
        dialbackAcceptThread = null;
    }
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