    @Test
    public void testGetBearerTokenFallbackToHeaderWithCookieHeader() {

        when(authContextInfo.getTokenHeader()).thenReturn(COOKIE);
        when(authContextInfo.isAlwaysCheckAuthorization()).thenReturn(true);
        AbstractBearerTokenExtractor target = newTarget(h -> "Bearer THE_HEADER_TOKEN", c -> "THE_COOKIE_TOKEN");
        String bearerToken = target.getBearerToken();
        assertEquals("THE_COOKIE_TOKEN", bearerToken);
    }