@Test
public void search_UserRepositoryError_ErrorMsg() {

    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);
}