@Test
        void verifyAuthn() throws Throwable {
            val registeredService = RegisteredServiceTestUtils.getRegisteredService("https://github.com/apereo/cas");
            getServicesManager().save(registeredService);
            val context = MockRequestContext.create(applicationContext);

            val tgt = new MockTicketGrantingTicket(CoreAuthenticationTestUtils.getAuthentication());
            getTicketRegistry().addTicket(tgt);
            WebUtils.putTicketGrantingTicketInScopes(context, tgt);
            val result = genericSuccessViewAction.execute(context);

            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
            assertNotNull(WebUtils.getAuthentication(context));
        }
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