@Test
public void testGetBearerTokenDefaultCookieHeader() {

    when(authContextInfo.getTokenHeader()).thenReturn(COOKIE);
    AbstractBearerTokenExtractor target = newTarget(h -> null, c -> "THE_TOKEN");
    String bearerToken = target.getBearerToken();
    assertEquals("THE_TOKEN", bearerToken);
}