@Test
public void testSuccess() throws Exception {

    List<Map<String, String>> config = List.of(Map.of(
        "keytab", fakeKDC.getKeytabPath(BROKER).toString(),
        "principal", BROKER
    ));
    try (SettingsOverride override = SettingsOverride.apply(Map.of(AppSettings.KEYTABS, config))) {
        String token = generateSpnegoToken("alice");
        SpnegoAuthenticator auth = new SpnegoAuthenticator();
        String authenticateUser = auth.authenticateUser("Negotiate " + token);
        assertEquals("alice@EXAMPLE.COM", authenticateUser);
    }
}