@AfterEach
    public void tearDown() throws Exception
    {
        tmpIdentityStoreFile.delete();
        tmpTrustStoreFile.delete();
        identityStore = null;
        trustStore = null;
        DNSUtil.setDnsOverride(null);

        if (remoteInitiatingServerDummy != null) {
            remoteInitiatingServerDummy.disconnect();
            remoteInitiatingServerDummy = null;
        }

        Fixtures.clearExistingProperties(
            Set.of(
                "xmpp.domain",
                "xmpp.socket.netty.graceful-shutdown.quiet-period",
                "xmpp.socket.netty.graceful-shutdown.timeout"
            ));
    }
Prepares the local server for operation. This mostly involves preparing the test fixture by mocking parts of the
API that {@link LocalOutgoingServerSession#createOutgoingSession(DomainPair, int)} uses when establishing a
connection.
xmppserver/src/test/java/org/jivesoftware/openfire/session/LocalIncomingServerSessionTest.java