private SslChannelBuilder newClientChannelBuilder() {
        return new SslChannelBuilder(ConnectionMode.CLIENT, null, false, new LogContext());
    }
Tests that handshake failures are propagated only after writes complete, even when
there are delays in writes to ensure that clients see an authentication exception
rather than a connection failure.
clients/src/test/java/org/apache/kafka/common/network/SslTransportLayerTest.java