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

        val svc = CoreAuthenticationTestUtils.getRegisteredService(UUID.randomUUID().toString());
        val policy = new DefaultRegisteredServiceAccessStrategy();
        when(svc.getAccessStrategy()).thenReturn(policy);

        val strategy = getSingleSignOnStrategy(svc);
        val ssoRequest = SingleSignOnParticipationRequest.builder()
            .httpServletRequest(context.getHttpServletRequest())
            .httpServletResponse(context.getHttpServletResponse())
            .requestContext(context)
            .build();

        assertFalse(strategy.supports(ssoRequest));
        assertTrue(strategy.isParticipating(ssoRequest));

        WebUtils.putRegisteredService(context, svc);
        assertEquals(0, strategy.getOrder());
        assertTrue(strategy.supports(ssoRequest));
        assertTrue(strategy.isParticipating(ssoRequest));

        policy.setDelegatedAuthenticationPolicy(null);
        assertFalse(strategy.supports(ssoRequest));
        assertTrue(strategy.isParticipating(ssoRequest));
    }
This is {@link DelegatedAuthenticationSingleSignOnParticipationStrategyTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pac4j-core/src/test/java/org/apereo/cas/web/flow/DelegatedAuthenticationSingleSignOnParticipationStrategyTests.java