@Test
public void shouldRefreshInnerAccessTokenUsingOAuthApiResult() throws Exception {

    OAuthToken refreshedToken = mock(OAuthToken.class);
    when(mockOAuthApi.refreshAccessToken(any(OAuthToken.class))).thenReturn(refreshedToken);
    toTest.refresh();
    verify(mockOAuthApi).refreshAccessToken(mockToken);
    // run it another time to assert next time the refreshed token has been used
    toTest.refresh();
    
    verify(mockOAuthApi).refreshAccessToken(refreshedToken);
}