@Test
    void verifyNoServiceFound() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService("invalid-service-123"));
        assertThrows(UnauthorizedServiceException.class, () -> this.action.execute(context));
    }
This is {@link GatewayServicesManagementCheckActionTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-actions/src/test/java/org/apereo/cas/web/flow/GatewayServicesManagementCheckActionTests.java