@Test
public void refreshReturnsNullToken() {

    Mockito.when(cognitoIdentityProvider.synchronouslyRefreshCognitoToken()).thenReturn(null);
    assertEquals(null, authenticationProvider.refresh());
}