private static Authentication getAuthentication(final String username) {
        val authentication = mock(Authentication.class);
        val principal = mock(Principal.class);
        when(principal.getId()).thenReturn(username);
        when(authentication.getPrincipal()).thenReturn(principal);
        return authentication;
    }
This is {@link GroovyMultifactorAuthenticationProviderBypassEvaluatorTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/GroovyMultifactorAuthenticationProviderBypassEvaluatorTests.java