@Test
    public void testSaslUnsupportedClientVersions() throws Exception {
        configureMechanisms("SCRAM-SHA-512", Collections.singletonList("SCRAM-SHA-512"));

        server = startServerApiVersionsUnsupportedByClient(SecurityProtocol.SASL_SSL, "SCRAM-SHA-512");
        updateScramCredentialCache(TestJaasConfig.USERNAME, TestJaasConfig.PASSWORD);

        String node = "0";

        createClientConnection(SecurityProtocol.SASL_SSL, "SCRAM-SHA-512", node, true);
        NetworkTestUtils.checkClientConnection(selector, "0", 100, 10);
    }
Tests correct negotiation of handshake and authenticate api versions by having the server
return a higher version than supported on the client.
Note, that due to KAFKA-9577 this will require a workaround to effectively bump
SASL_HANDSHAKE in the future.
clients/src/test/java/org/apache/kafka/common/security/authenticator/SaslAuthenticatorTest.java