@Test
  public void securedSocketTransmissionShouldWork() throws Throwable {
    serverSocket = socketCreator.forCluster().createServerSocket(0, 0, localHost);
    serverThread = startServer(serverSocket, 15000);

    int serverPort = serverSocket.getLocalPort();
    clientSocket = socketCreator.forCluster()
        .connect(new HostAndPort(localHost.getHostAddress(), serverPort), 0, null,
            Socket::new);

    // transmit expected string from Client to Server
    ObjectOutputStream output = new ObjectOutputStream(clientSocket.getOutputStream());
    output.writeObject(MESSAGE);
    output.flush();

    // this is the real assertion of this test
    await().until(() -> {
      return !serverThread.isAlive();
    });
    if (serverException != null) {
      throw serverException;
    }
    assertThat(messageFromClient.get()).isEqualTo(MESSAGE);
  }
see GEODE-4087. Geode should not establish a default SSLContext, preventing apps from using
different ssl settings via standard system properties. Since this test class sets these system
properties to establish a default context we merely need to perform an equality check between
the cluster's context and the default context and assert that they aren't the same.
geode-core/src/integrationTest/java/org/apache/geode/internal/net/SSLSocketIntegrationTest.java