@Test
public void loginErrorBadCredentials() {

    Response response = Response.error(401, responseBody);
    when(identityManager.logInOrSignUp(loginPayload)).thenReturn(Observable.error(new HttpException(response)));
    final TestObserver<UiIndicator<String>> testObserver = interactor.loginOrSignUp(loginPayload).test();
    testObserver.assertValues(UiIndicator.loading(), UiIndicator.error(context.getString(R.string.login_failure_credentials_toast)));
    testObserver.assertComplete();
    testObserver.assertNoErrors();
}