@Test
    void verifyExcludedServices() {
        val chain = new ChainingRegisteredServiceConsentPolicy();
        chain.addPolicies(List.of(
            new DefaultRegisteredServiceConsentPolicy().setStatus(TriStateBoolean.TRUE).setExcludedServices(Set.of("application1")),
            new DefaultRegisteredServiceConsentPolicy().setExcludedServices(Set.of("application2"))));
        assertTrue(chain.getStatus().isTrue());
        assertEquals(2, chain.getExcludedServices().size());
        assertTrue(chain.getExcludedServices().contains("application1"));
    }
This is {@link ChainingRegisteredServiceConsentPolicyTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/consent/ChainingRegisteredServiceConsentPolicyTests.java