@Test
public void synchronouslyRefreshCognitoTokenThrowsException() {

    Mockito.when(identityManager.getMe()).thenReturn(Observable.<MeResponse>error(new IOException()));
    assertEquals(null, cognitoIdentityProvider.synchronouslyRefreshCognitoToken());
}