@Test
    void verifyGetListView() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        WebUtils.putSurrogateAuthenticationRequest(context, true);
        WebUtils.putCredential(context, CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword("casuser"));

        assertEquals(CasWebflowConstants.TRANSITION_ID_SURROGATE_VIEW, loadSurrogatesListAction.execute(context).getId());
        assertNotNull(WebUtils.getSurrogateAuthenticationAccounts(context));
    }
This is {@link LoadSurrogatesListActionTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-surrogate-webflow/src/test/java/org/apereo/cas/web/flow/action/LoadSurrogatesListActionTests.java