@Test
    void verifyFails() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setExternalContext(mock(ServletExternalContext.class));
        WebUtils.putCredential(context, CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword("casuser"));
        assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, selectSurrogateAction.execute(context).getId());
    }
This is {@link SurrogateSelectionActionTests}.

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