@Test
public void testTokenIsAddedToRequestBuilder() {

    RequestBuilder builder = mock(RequestBuilder.class);
    RequestBuilder builderResult = mock(RequestBuilder.class);
    when(builder.header(HttpConstants.HEADER_AUTHORIZATION, AUTH_HEADER_VALUE))
            .thenReturn(builderResult);
    AccessToken accessToken = new AccessToken(TOKEN);
    assertThat(accessToken.addToken(builder)).isEqualTo(builderResult);
}