@Test
    void verifyExternalGroovyFile() throws Throwable {
        val request = RegisteredServiceAccessStrategyRequest.builder().principalId("casuser")
            .registeredService(CoreAuthenticationTestUtils.getRegisteredService())
            .applicationContext(applicationContext)
            .attributes(CollectionUtils.wrap("key1", Set.of("value1"))).build();
        val results = new GroovyRegisteredServiceAccessStrategyActivationCriteria();
        results.setGroovyScript("classpath:GroovyAccessActivation.groovy");
        assertTrue(results.shouldActivate(request));
    }
This is {@link GroovyRegisteredServiceAccessStrategyActivationCriteriaTests}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/GroovyRegisteredServiceAccessStrategyActivationCriteriaTests.java