@Test
    void verifyNoConsentWithoutServiceOrAuthn() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        assertNull(checkConsentRequiredAction.execute(context));

        val id = UUID.randomUUID().toString();
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(id);
        servicesManager.save(registeredService);
        WebUtils.putServiceIntoFlowScope(context, CoreAuthenticationTestUtils.getWebApplicationService(registeredService.getServiceId()));

        assertNull(checkConsentRequiredAction.execute(context));
    }
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