@Override
  public void handshakeIfSocketIsSSL(Socket socket, int timeout) throws IOException {
    socketSoTimeouts.add(timeout);
    if (failTLSHandshake) {
      throw new SSLException("This is a test SSLException");
    } else {
      super.handshakeIfSocketIsSSL(socket, timeout);
    }
  }
@param failTLSHandshake false will cause the next handshake to NOT throw SSLException
geode-core/src/integrationTest/java/org/apache/geode/internal/net/SocketCreatorFailHandshake.java