@Test
    void verifyTokenFromHeader() {
        val request = new MockHttpServletRequest();
        request.addHeader(TokenConstants.PARAMETER_NAME_TOKEN, "test");
        val token = TokenRequestExtractor.defaultExtractor().extract(request);
        assertEquals("test", token);
    }
This is {@link DefaultTokenRequestExtractorTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-token-webflow/src/test/java/org/apereo/cas/web/DefaultTokenRequestExtractorTests.java