@Test
    void verifyInlineGroovyFile() {
        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .principal(CoreAuthenticationTestUtils.getPrincipal("Frodo"))
            .build();
        val results = new GroovyRegisteredServiceAttributeReleaseActivationCriteria();
        results.setGroovyScript("groovy { context.principal.id == 'Frodo' }");
        assertTrue(results.shouldActivate(context));
    }
This is {@link GroovyRegisteredServiceAttributeReleaseActivationCriteriaTests}.

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