@Test
    public void testUnvalidatedExtensionsAreIgnored() {
        Map<String, String> extensions = new HashMap<>();
        extensions.put("valid", "valid");
        extensions.put("error", "error");
        extensions.put("nothing", "nothing");

        OAuthBearerExtensionsValidatorCallback callback = new OAuthBearerExtensionsValidatorCallback(TOKEN, new SaslExtensions(extensions));
        callback.error("error", "error");
        callback.valid("valid");

        assertFalse(callback.validatedExtensions().containsKey("nothing"));
        assertFalse(callback.invalidExtensions().containsKey("nothing"));
        assertEquals("nothing", callback.ignoredExtensions().get("nothing"));
    }
Extensions that are neither validated or invalidated must not be present in either maps
clients/src/test/java/org/apache/kafka/common/security/oauthbearer/OAuthBearerExtensionsValidatorCallbackTest.java