@Test
    void verifyRemoteUserExists() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.addHeader("cas-header-name", "casuser");
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, this.action.execute(context).getId());
        val credential = WebUtils.getCredential(context);
        assertEquals("casuser", credential.getId());
    }
This is {@link PrincipalFromRemoteRequestHeaderNonInteractiveCredentialsActionTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-trusted/src/test/java/org/apereo/cas/adaptors/trusted/web/flow/PrincipalFromRemoteRequestHeaderNonInteractiveCredentialsActionTests.java