@Test
public void testGetBearerTokenCustomHeader() {

    when(authContextInfo.getTokenHeader()).thenReturn("MyHeader");
    AbstractBearerTokenExtractor target = newTarget(h -> {
        if ("MyHeader".equals(h)) {
            return "THE_CUSTOM_TOKEN";
        }
        return null;
    }, c -> null);
    String bearerToken = target.getBearerToken();
    assertEquals("THE_CUSTOM_TOKEN", bearerToken);
}