private boolean getAttributesFromPolicy(final RegisteredServiceAttributeReleaseActivationCriteria policy) {
        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(CoreAuthenticationTestUtils.getRegisteredService())
            .service(CoreAuthenticationTestUtils.getService())
            .applicationContext(applicationContext)
            .principal(CoreAuthenticationTestUtils.getPrincipal("casuser"))
            .build();
        return policy.shouldActivate(context);
    }
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