@Test
public void thatExpiredTokenRefreshAfterARequest() throws IOException {

    enqueueServerFile(mMockServer, AUTHENTICATE);
    Response response = givenA200Response();
    Token expiredToken = givenAExpiredToken();
    Session session = new Session(expiredToken);
    mSessionManager.setSession(HaloAuthenticator.HALO_SESSION_NAME, session);
    Request newRequest = mAuthenticator.authenticate(null, response);
    assertThat(newRequest).isNotNull();
    assertThat(newRequest.header("Authorization")).contains("Bearer LSD4fw4NLBTESfF18tTVEST6q9vsaLW8tMfEGLJa");
}