@Test
        void verifyOperationByProviderScriptUnknown() {
            val policy = mock(RegisteredServiceMultifactorPolicy.class);
            when(policy.getScript()).thenReturn("classpath:Unknown.groovy");
            val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
            when(registeredService.getMultifactorAuthenticationPolicy()).thenReturn(policy);
            assertThrows(FileNotFoundException.class,
                () -> scriptedRegisteredServiceMultifactorAuthenticationTrigger.isActivated(
                    CoreAuthenticationTestUtils.getAuthentication(), registeredService,
                    new MockHttpServletRequest(), new MockHttpServletResponse(),
                    CoreAuthenticationTestUtils.getService()));
        }
This is {@link ScriptedRegisteredServiceMultifactorAuthenticationTriggerTests}.

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