@Test
    void verifyAndOperation() {
        val request = RegisteredServiceAccessStrategyRequest.builder()
            .applicationContext(applicationContext)
            .principalId("casuser")
            .attributes(CollectionUtils.wrap("key1", Set.of("value1"))).build();
        val chain = new ChainingRegisteredServiceAccessStrategyActivationCriteria();
        chain.addConditions(RegisteredServiceAccessStrategyActivationCriteria.always(),
            RegisteredServiceAccessStrategyActivationCriteria.never());
        chain.setOperator(LogicalOperatorTypes.AND);
        assertFalse(chain.shouldActivate(request));
        assertTrue(chain.isAllowIfInactive());
    }
This is {@link ChainingRegisteredServiceAccessStrategyActivationCriteriaTests}.

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