@Test
    void verifyNoConsent() throws Throwable {
        val registeredService = CoreAuthenticationTestUtils.getRegisteredService();
        when(registeredService.getAttributeReleasePolicy()).thenReturn(mock(RegisteredServiceAttributeReleasePolicy.class));
        assertFalse(getConsentActivationStrategy().isConsentRequired(
            CoreAuthenticationTestUtils.getService(),
            registeredService,
            CoreAuthenticationTestUtils.getAuthentication(),
            new MockHttpServletRequest()));
    }
This is {@link DefaultConsentActivationStrategyDisabledTests}.

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