@Test
    public void testDisabledMechanism() throws Exception {
        String node = "0";
        SecurityProtocol securityProtocol = SecurityProtocol.SASL_SSL;
        configureMechanisms("PLAIN", Collections.singletonList("DIGEST-MD5"));

        server = createEchoServer(securityProtocol);
        createAndCheckClientConnectionFailure(securityProtocol, node);
        server.verifyAuthenticationMetrics(0, 1);
        server.verifyReauthenticationMetrics(0, 0);
    }
Tests that mechanisms with default implementation in Kafka may be disabled in
the Kafka server by removing from the enabled mechanism list.
clients/src/test/java/org/apache/kafka/common/security/authenticator/SaslAuthenticatorTest.java