@Test
        void verifyAuthzServices() throws Throwable {
            val registeredService1 = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString(), Map.of());
            getServicesManager().save(registeredService1);

            val registeredService2 = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
            registeredService2.setAccessStrategy(new DefaultRegisteredServiceAccessStrategy(false, false));
            getServicesManager().save(registeredService2);

            val context = MockRequestContext.create(applicationContext);
            val tgt = new MockTicketGrantingTicket("casuser");
            WebUtils.putTicketGrantingTicketInScopes(context, tgt);
            getTicketRegistry().addTicket(tgt);

            val result = genericSuccessViewAction.execute(context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
            assertNotNull(WebUtils.getAuthorizedServices(context));
            val list = WebUtils.getAuthorizedServices(context);
            assertFalse(list.isEmpty());
        }
Tests for {@link GenericSuccessViewAction}

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