assertFalse("tls init", sessionContext.isSwitchToTLSCalled());
sessionContext.setSessionState(SessionState.STARTED);
responseStanza = executeStartTLSHandler(starttlsStanza, sessionContext);
verifier = responseStanza.getVerifier();
assertTrue("session state ready", verifier.nameEquals("proceed"));
assertEquals("session stat is encryption started", SessionState.ENCRYPTION_STARTED, sessionStateHolder.getState());
assertTrue("tls init", sessionContext.isSwitchToTLSCalled());
}
private Stanza executeStartTLSHandler(Stanza starttlsStanza, TestSessionContext sessionContext) {