source: class UserSearchPresenterTest {
  
      private static final String USER_LOGIN_RIGGAROO;
      private static final String USER_LOGIN_2_REBECCA;
      @Mock UserRepository userRepository;
      @Mock UserSearchContract.View view;
       UserSearchPresenter userSearchPresenter;
  
      @Test
      public void search_UserRepositoryError_ErrorMsg() {
  
target:         String errorMsg = "No internet";
          when(userRepository.searchUsers(anyString())).thenReturn(Observable.error(new IOException(errorMsg)));
  
          userSearchPresenter.search("bookdash");
  
          verify(view).showLoading();
          verify(view).hideLoading();
          verify(view, never()).showSearchResults(anyList());
          verify(view).showError(errorMsg);
      }
  
  }