@Test
    void checkDefaultAuthzStrategyConfig() {
        val accessStrategy = new GroovyRegisteredServiceAccessStrategy();
        accessStrategy.setGroovyScript("classpath:GroovyServiceAccessStrategy.groovy");
        assertTrue(accessStrategy.isServiceAccessAllowed(RegisteredServiceTestUtils.getRegisteredService(), CoreAuthenticationTestUtils.getService()));
        assertTrue(accessStrategy.isServiceAccessAllowedForSso(RegisteredServiceTestUtils.getRegisteredService()));
        val request = RegisteredServiceAccessStrategyRequest.builder()
            .service(RegisteredServiceTestUtils.getService2())
            .principalId(UUID.randomUUID().toString())
            .build();
        assertTrue(accessStrategy.authorizeRequest(request));
        assertNull(accessStrategy.getUnauthorizedRedirectUrl());
        assertNotNull(accessStrategy.getDelegatedAuthenticationPolicy());
        assertNotNull(accessStrategy.getRequiredAttributes());
    }
This is test cases for
{@link GroovyRegisteredServiceAccessStrategyTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/GroovyRegisteredServiceAccessStrategyTests.java