@Test
    void verifyOperationByAttribute() {
        val props = new CasConfigurationProperties();
        props.getAuthn().getMfa().getTriggers().getHttp().setSessionAttribute("mfaPolicy");
        httpRequest.setAttribute("mfaPolicy", TestMultifactorAuthenticationProvider.ID);
        val trigger = new HttpRequestMultifactorAuthenticationTrigger(props, this.applicationContext);
        val result = trigger.isActivated(authentication, registeredService, this.httpRequest, this.httpResponse, mock(Service.class));
        assertTrue(result.isPresent());
    }
This is {@link HttpRequestMultifactorAuthenticationTriggerTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/trigger/HttpRequestMultifactorAuthenticationTriggerTests.java