@Test
public void searchUsers_OtherHttpError_SearchTerminatedWithError() {

    //Given
    when(githubUserRestService.searchGithubUsers(anyString())).thenReturn(get403ForbiddenError());
    //When
    TestSubscriber<List<User>> subscriber = new TestSubscriber<>();
    userRepository.searchUsers(USER_LOGIN_RIGGAROO).subscribe(subscriber);
    //Then
    subscriber.awaitTerminalEvent();
    subscriber.assertError(HttpException.class);
    verify(githubUserRestService).searchGithubUsers(USER_LOGIN_RIGGAROO);
    verify(githubUserRestService, never()).getUser(USER_LOGIN_RIGGAROO);
    verify(githubUserRestService, never()).getUser(USER_LOGIN_2_REBECCA);
}