public synchronized void stopProcessingService() throws InterruptedException
    {
        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(SO_TIMEOUT.dividedBy(10).toMillis());
        } */

        if (!processingService.isTerminated()) {
            processingService.shutdownNow();
        }
    }
Get the port on which this instance is accepting sockets.

@return a port number.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteReceivingServerDummy.java