@After
  public void tearDown() throws Exception {
    if (serverThread != null && serverThread.isAlive()) {
      serverThread.interrupt();
      serverThread.join(GeodeAwaitility.getTimeout().toMillis());
    }
    if (clientSocket != null) {
      clientSocket.close();
    }
    if (serverSocket != null) {
      serverSocket.close();
    }
    SocketCreatorFactory.close();
  }
Integration tests for SSL handshake specifically focusing on hostname validation.
geode-core/src/integrationTest/java/org/apache/geode/internal/net/SSLSocketHostNameVerificationIntegrationTest.java