public synchronized void stopProcessingService() throws InterruptedException
    {
        if (processingService != null) {
            processingService.shutdown();

            /* This is graceful, but takes a lot of time when combining all unit test executions.
            final Instant end = Instant.now().plus(SO_TIMEOUT.multipliedBy(20));
            while (Instant.now().isBefore(end) && !processingService.isTerminated()) {
                Thread.sleep(Math.max(100, SO_TIMEOUT.dividedBy(50).toMillis()));
            } */
            if (!processingService.isTerminated()) {
                processingService.shutdownNow();
            }
        }
    }
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