@Test
public void testBearerTokenRequestConfig() {

    final String token = "some-token";
    final String expectedHeaderValue = "Bearer " + token;
    final RequestConfig requestConfig = new BearerTokenRequestConfig(token);
    final Map<String,String> headers = requestConfig.getHeaders();
    assertNotNull(headers);
    assertEquals(1, headers.size());
    final String authorizationHeaderValue = headers.get("Authorization");
    assertEquals(expectedHeaderValue, authorizationHeaderValue);
}