@Test
    void verifyPrincipalAccessOr() {
        val chain = new ChainingRegisteredServiceAccessStrategy();
        chain.setOperator(LogicalOperatorTypes.OR);
        chain.addStrategy(new DefaultRegisteredServiceAccessStrategy(CollectionUtils.wrap("key1", Set.of("value1"))));
        chain.addStrategy(new DefaultRegisteredServiceAccessStrategy(CollectionUtils.wrap("key2", Set.of("value2"))));

        assertTrue(chain.authorizeRequest(RegisteredServiceAccessStrategyRequest.builder().principalId("casuser")
            .applicationContext(applicationContext)
            .attributes(CollectionUtils.wrap("key1", Set.of("value1"))).build()));
        assertTrue(chain.authorizeRequest(RegisteredServiceAccessStrategyRequest.builder().principalId("casuser")
            .applicationContext(applicationContext)
            .attributes(CollectionUtils.wrap("key2", Set.of("value2"))).build()));
    }
This is {@link ChainingRegisteredServiceAccessStrategyTests}.

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