@Test
public void search_ValidSearchTerm_ReturnsResults() {

    UsersList userList = getDummyUserList();
    when(userRepository.searchUsers(anyString())).thenReturn(Observable.<List<User>>just(userList.getItems()));
    userSearchPresenter.search("riggaroo");
    verify(view).showLoading();
    verify(view).hideLoading();
    verify(view).showSearchResults(userList.getItems());
    verify(view, never()).showError(anyString());
}