@ParameterizedTest
    @ArgumentsSource(SslTransportLayerArgumentsProvider.class)
    public void testClosePlaintext(Args args) throws Exception {
        testClose(args, SecurityProtocol.PLAINTEXT, new PlaintextChannelBuilder(null));
    }
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