public void setUp() throws Exception
    {
        remoteReceivingServerDummy = new RemoteReceivingServerDummy();
        remoteReceivingServerDummy.open();
        DNSUtil.setDnsOverride(Map.of(RemoteReceivingServerDummy.XMPP_DOMAIN, new SrvRecord("localhost", remoteReceivingServerDummy.getPort(), false)));
    }
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