@Test
    void verifySurrogateCredentialsFound() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val credential = new UsernamePasswordCredential();
        credential.setUsername("casuser");
        credential.assignPassword("Mellon");
        credential.getCredentialMetadata().addTrait(new SurrogateCredentialTrait("cassurrogate"));
        WebUtils.putCredential(context, credential);
        assertNull(initialAuthenticationAction.execute(context));
    }
This is {@link SurrogateInitialAuthenticationActionTests}.

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