private SingleSignOnParticipationStrategy getSingleSignOnStrategy(final RegisteredService registeredService) {
        val authenticationExecutionPlan = new DefaultAuthenticationEventExecutionPlan(new DefaultAuthenticationHandlerResolver(), tenantExtractor);
        authenticationExecutionPlan.registerAuthenticationHandler(new SimpleTestUsernamePasswordAuthenticationHandler());

        servicesManager.save(registeredService);
        return new RegisteredServiceAuthenticationPolicySingleSignOnParticipationStrategy(servicesManager,
            ticketRegistrySupport,
            new DefaultAuthenticationServiceSelectionPlan(new DefaultAuthenticationServiceSelectionStrategy()),
            authenticationExecutionPlan, applicationContext);
    }
This is {@link RegisteredServiceAuthenticationPolicySingleSignOnParticipationStrategyTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-webflow/src/test/java/org/apereo/cas/web/flow/authentication/RegisteredServiceAuthenticationPolicySingleSignOnParticipationStrategyTests.java