@Test
    void verifySelectionStrategy() {
        val chain = new ChainingRegisteredServiceDelegatedAuthenticationPolicy();
        val p1 = new DefaultRegisteredServiceDelegatedAuthenticationPolicy();
        val p2 = new DefaultRegisteredServiceDelegatedAuthenticationPolicy();
        p2.setSelectionStrategy("groovy { providers.first()}");
        chain.addStrategy(p1);
        chain.addStrategy(p2);
        assertTrue(chain.getSelectionStrategy().startsWith("groovy {"));
    }
This is {@link ChainingRegisteredServiceDelegatedAuthenticationPolicyTests}.

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