@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        val provider = DelegatedClientIdentityProviderConfiguration.builder()
            .name("SomeClient")
            .type("CasClient")
            .redirectUrl("https://localhost:8443/redirect")
            .build();
        val service = RegisteredServiceTestUtils.getService();
        val resource = new ClassPathResource("GroovyClientRedirectStrategy.groovy");

        val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
        val watchableScript = scriptFactory.fromResource(resource);
        val strategy = new GroovyDelegatedClientIdentityProviderRedirectionStrategy(servicesManager,
            watchableScript, applicationContext);
        assertFalse(strategy.select(context, service, Set.of(provider)).isEmpty());
        assertEquals(0, strategy.getOrder());
    }
This is {@link GroovyDelegatedClientIdentityProviderRedirectionStrategyTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-pac4j-core/src/test/java/org/apereo/cas/pac4j/clients/GroovyDelegatedClientIdentityProviderRedirectionStrategyTests.java