@Test
        void verifyServiceDisallowed() throws Throwable {
            val context = MockRequestContext.create(applicationContext);
            val id = UUID.randomUUID().toString();
            val registeredService = RegisteredServiceTestUtils.getRegisteredService(id);
            registeredService.setAccessStrategy(new DefaultRegisteredServiceAccessStrategy().setEnabled(false));
            servicesManager.save(registeredService);
            WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService(id));
            WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(), context);
            val event = initialAuthenticationAttemptWebflowEventResolver.resolveSingle(context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, event.getId());
        }
This is {@link DefaultCasDelegatingWebflowEventResolverTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/web/flow/resolver/impl/DefaultCasDelegatingWebflowEventResolverTests.java