### Question:
BearerTokenRequestConfig implements RequestConfig { public BearerTokenRequestConfig(final String token) { this.token = Validate.notBlank(token); } BearerTokenRequestConfig(final String token); @Override Map<String, String> getHeaders(); static final String AUTHORIZATION_HEADER; static final String BEARER; }### Answer:
@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); }