@ParameterizedTest
    @ArgumentsSource(SslTransportLayerArgumentsProvider.class)
    public void testPeerNotifiedOfHandshakeFailureWithClientSideDelay(Args args) throws Exception {
        args.sslServerConfigs.put(BrokerSecurityConfigs.SSL_CLIENT_AUTH_CONFIG, "required");
        CertStores.KEYSTORE_PROPS.forEach(args.sslClientConfigs::remove);
        verifySslConfigsWithHandshakeFailure(args, 1);
    }
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