private RegisteredService getRegisteredServiceWithConsentStatus(final TriStateBoolean status) {
        val id = UUID.randomUUID().toString();
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(id);
        val attrPolicy = new ReturnAllAttributeReleasePolicy();
        attrPolicy.setConsentPolicy(new DefaultRegisteredServiceConsentPolicy().setStatus(status));
        registeredService.setAttributeReleasePolicy(attrPolicy);
        servicesManager.save(registeredService);
        return registeredService;
    }
This is {@link CheckConsentRequiredActionTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-consent-webflow/src/test/java/org/apereo/cas/web/flow/CheckConsentRequiredActionTests.java