@Test
public void testAccessTokenCanBeObtained() {

    CompletableFuture<String> tokenFuture = CompletableFuture.completedFuture(TOKEN);
    expectTokenRequest(tokenFuture);
    AccessToken accessToken = tokenProvider.obtainAccessToken().join();
    assertThat(accessToken.getToken()).isEqualTo(TOKEN);
}