@Test(expected = BasePresenter.MvpViewNotAttachedException.class)
public void search_NotAttached_ThrowsMvpException() {

    userSearchPresenter.detachView();
    userSearchPresenter.search("test");
    verify(view, never()).showLoading();
    verify(view, never()).showSearchResults(anyList());
}