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

        if (remoteReceivingServerDummy != null) {
            remoteReceivingServerDummy.close();
            remoteReceivingServerDummy = null;
        }

        Fixtures.clearExistingProperties(
            Set.of(
                "xmpp.domain",
                "xmpp.socket.netty.graceful-shutdown.quiet-period",
                "xmpp.socket.netty.graceful-shutdown.timeout"
            ));
    }
Dynamically generate a ConnectionConfiguration answer, as used by the Mock ConnectionListener.
<p>
A dynamic answer is needed, as the value of the ConnectionSettings.Server.TLS_POLICY property needs to be
evaluated at run-time (this value is changed in the setup of many of the unit tests in this file).
</p>
xmppserver/src/test/java/org/jivesoftware/openfire/session/LocalOutgoingServerSessionTest.java