@Test
    void verifyPolicyWithOR() {
        val chain = new ChainingRegisteredServiceAttributeReleaseActivationCriteria().setOperator(LogicalOperatorTypes.OR);
        val criteria2 = new AttributeBasedRegisteredServiceAttributeReleaseActivationCriteria()
            .setRequiredAttributes(Map.of("memberOf", List.of("staff")));
        val criteria1 = new AttributeBasedRegisteredServiceAttributeReleaseActivationCriteria()
            .setRequiredAttributes(Map.of("givenName", List.of("unknown")));
        chain.addConditions(criteria1, criteria2);
        assertTrue(getAttributesFromPolicy(chain));
    }
This is {@link ChainingRegisteredServiceAttributeReleaseActivationCriteriaTests}.

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