private void initiateTLS() throws IOException {
            log("Initiating TLS...");
            final Document outbound = DocumentHelper.createDocument();
            final Element startTls = outbound.addElement(QName.get("starttls", "urn:ietf:params:xml:ns:xmpp-tls"));

            markLastStreamIDasProcessed(); // Prevents the code from waiting on the stream (to be replaced with an encrypted one) to be registered with session manager during test fixture teardown.

            send(startTls.asXML());
        }
Returns 'true' if negotiation was started, false if no negotiation was started.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteInitiatingServerDummy.java