private void configureService(final RegisteredServiceDelegatedAuthenticationPolicy policy) {
        val registeredService = RegisteredServiceTestUtils.getRegisteredService();
        val accessStrategy = new DefaultRegisteredServiceAccessStrategy();
        accessStrategy.setDelegatedAuthenticationPolicy(policy);
        registeredService.setAccessStrategy(accessStrategy);
        this.servicesManager.save(registeredService);
    }
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