@Test
    void verifyConsentDisablesRelease() throws Throwable {
        val authentication = CoreAuthenticationTestUtils.getAuthentication(UUID.randomUUID().toString());
        val service = CoreAuthenticationTestUtils.getService();
        val consentService = RegisteredServiceTestUtils.getRegisteredService("consentService");
        consentService.setAttributeReleasePolicy(null);
        assertTrue(consentEngine.resolveConsentableAttributesFrom(authentication, service, consentService).isEmpty());
        assertFalse(consentEngine.isConsentRequiredFor(service, consentService, authentication).isRequired());
    }
This is {@link DefaultConsentEngineTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-consent-core/src/test/java/org/apereo/cas/consent/DefaultConsentEngineTests.java