### Question:
SearchPresenter extends BasePresenter<SearchContract.View> implements SearchContract.Presenter { @Override public void getTopSearchData() { addSubscribe(mDataManager.getTopSearchData() .compose(RxUtils.rxSchedulerHelper()) .compose(RxUtils.handleResult()) .subscribeWith(new BaseObserver<List<TopSearchData>>(mView, WanAndroidApp.getInstance().getString(R.string.failed_to_obtain_top_data)) { @Override public void onNext(List<TopSearchData> topSearchDataList) { mView.showTopSearchData(topSearchDataList); } })); } @Inject  SearchPresenter(DataManager dataManager); @Override void attachView(SearchContract.View view); @Override List<HistoryData> loadAllHistoryData(); @Override void addHistoryData(String data); @Override void clearHistoryData(); @Override void getTopSearchData();  }### Answer:
@Test public void getTopSearchDataSuccess() { mSearchPresenter.getTopSearchData(); Mockito.verify(mView).showTopSearchData(ArgumentMatchers.any()); }