@Test
    void verifyDiscoveryStrategy() throws Throwable {
        val strategy = getStrategy();
        val context = MockRequestContext.create(applicationContext);
        val provider = getProviderConfiguration("SomeClient");

        val policy = new DefaultRegisteredServiceDelegatedAuthenticationPolicy();
        policy.setSelectionStrategy("groovy { return providers.first() }");
        configureService(policy);

        val service = RegisteredServiceTestUtils.getService();
        val results = strategy.select(context, service, Set.of(provider));
        assertFalse(results.isEmpty());
        assertEquals(results.get().getName(), provider.getName());
    }
This is {@link DefaultDelegatedClientIdentityProviderRedirectionStrategyTests}.

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