@Test
    void verifyNoCredentialFound() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setParameter(SurrogateSelectionAction.PARAMETER_NAME_SURROGATE_TARGET, "cassurrogate");
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, selectSurrogateAction.execute(context).getId());
        val credential = WebUtils.getCredential(context);
        assertNull(credential);
    }
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