SMTPSClient client = createClient();
client.connect(address.getAddress().getHostAddress(), address.getPort());
assertTrue(SMTPReply.isPositiveCompletion(client.getReplyCode()));
client.sendCommand("EHLO localhost");
assertTrue(SMTPReply.isPositiveCompletion(client.getReplyCode()));
boolean startTLSAnnounced = false;
for (String reply: client.getReplyStrings()) {
if (reply.toUpperCase(Locale.UK).endsWith("STARTTLS")) {