@Test
        void verifyRedirect() throws Throwable {
            val registeredService = RegisteredServiceTestUtils.getRegisteredService("https://github.com/apereo/cas");
            getServicesManager().save(registeredService);
            val context = MockRequestContext.create(applicationContext);
            val result = genericSuccessViewAction.execute(context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
            assertTrue(context.getMockExternalContext().getExternalRedirectRequested());
            assertEquals(casProperties.getView().getDefaultRedirectUrl(), context.getMockExternalContext().getExternalRedirectUrl());
        }
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