@Override
    protected void internalInit(final boolean forceReinit) {
        setCredentialsExtractorIfUndefined(ctx -> returnCredentials.get());
        setAuthenticatorIfUndefined((ctx, cred) -> {
            cred.setUserProfile(profile);
            return Optional.of(cred);
        });
    }
Mock a direct client.

@author Jerome Leleu
@since 1.9.0
pac4j-core/src/test/java/org/pac4j/core/client/MockDirectClient.java