@Test
    void verifyNoProviders() throws Throwable {
        val appContext = new StaticApplicationContext();
        appContext.refresh();
        
        val props = new CasConfigurationProperties();
        val file = File.createTempFile("example", ".txt");
        FileUtils.writeStringToFile(file, "script", StandardCharsets.UTF_8);
        props.getAuthn().getMfa().getTriggers().getPrincipal().getGlobalPrincipalAttributePredicate().setLocation(new FileSystemResource(file));
        val trigger = new PredicatedPrincipalAttributeMultifactorAuthenticationTrigger(props, appContext);
        val result = trigger.isActivated(authentication, registeredService, this.httpRequest, this.httpResponse, mock(Service.class));
        assertTrue(result.isEmpty());
    }
This is {@link PredicatedPrincipalAttributeMultifactorAuthenticationTriggerTests}.

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