@Test
    void verifyFailingOps() {
        val accessStrategy = new GroovyRegisteredServiceAccessStrategy();
        accessStrategy.setGroovyScript("classpath:Unknown.groovy");
        assertThrows(UnauthorizedServiceException.class, () -> accessStrategy.isServiceAccessAllowed(null, null));
        assertThrows(UnauthorizedServiceException.class, () -> accessStrategy.isServiceAccessAllowedForSso(null));
        assertThrows(UnauthorizedServiceException.class, () -> accessStrategy.authorizeRequest(null));
    }
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