protected Authenticator getAuthenticator(final String name) {
        if (AUTHENTICATOR_TEST_TOKEN.equals(name)) {
            return new SimpleTestTokenAuthenticator();
        } else if (AUTHENTICATOR_TEST_USERNAME_PASSWORD.equals(name)) {
            return new SimpleTestUsernamePasswordAuthenticator();
        } else {
            return authenticators.get(name);
        }
    }
<p>getAuthenticator.</p>

@param name a {@link String} object
@return a {@link Authenticator} object
pac4j-config/src/main/java/org/pac4j/config/builder/AbstractBuilder.java