@Test
public void signUpErrorGeneric() {

    when(identityManager.logInOrSignUp(signUpPayload)).thenReturn(Observable.error(new Exception()));
    final TestObserver<UiIndicator<String>> testObserver = interactor.loginOrSignUp(signUpPayload).test();
    testObserver.assertValues(UiIndicator.loading(), UiIndicator.error(context.getString(R.string.sign_up_failure_toast)));
    testObserver.assertComplete();
    testObserver.assertNoErrors();
}