@Test
public void testGetBearerTokenCustomSchemeAuthorizationHeader() {

    when(authContextInfo.getTokenHeader()).thenReturn(AUTHORIZATION);
    when(authContextInfo.getTokenSchemes()).thenReturn(Arrays.asList("Bearer", "DPoP"));
    AbstractBearerTokenExtractor target = newTarget(h -> "DPoP THE_TOKEN", c -> null);
    String bearerToken = target.getBearerToken();
    assertEquals("THE_TOKEN", bearerToken);
}