@Test
public void thatCanAuthenticateANewTokenAndSessionIfSessionIsExpired() throws IOException {

    enqueueServerError(mMockServer, 401);
    Token token = givenAToken();
    Session newSession = new Session(token);
    Response response = givenA200Response();
    mSessionManager.setSession(HaloAuthenticator.HALO_SESSION_NAME, newSession);
    Request newRequest = mAuthenticator.authenticate(null, response);
    assertThat(newRequest).isNotNull();
    assertThat(newRequest.header("Authorization")).isEqualTo(token.getAuthorization());
}