class TravelNotesPresenter implements TravelNotesContract.Presenter {

    @Override
    public void loadData(String key,int page) {
        view.showDialog();
//        RouterDemo.getRouter(obj.getLifecycleSubject(),key, page+"")
//                .doOnTerminate(() -> view.disDialog())
//                .subscribe(d -> obj.dataBinding(d),
//                        e -> obj.dataError(e));
        APIServiceManager
                .getTravelNotesAPI()
                .getTravelNotesList(key, page + "")
                .compose(obj.bindToLifecycle())
                .compose(RxSchedulersHelper.io_main())
                .compose(SchedulersHelper.handleResult())
                .doOnTerminate(() -> view.disDialog())
                .subscribe(d -> obj.dataBinding(d),
                        e -> obj.dataError(e));
//                .subscribe(s -> RxBus.getInstance().post(RxBus.getInstance()
//                        .getTag(obj.getClass(),RxBus.TAG_UPDATE), s),
//                        e -> RxBus.getInstance().post(RxBus.getInstance()
//                                .getTag(obj.getClass(),RxBus.TAG_ERROR), e.getMessage()));
    }

}

class TravelNotesPresenterTest implements TravelNotesContract.Presenter {

     TravelNotesPresenter travelNotesPresenter;

    @Test
    public void loadData() throws Exception {

        travelNotesPresenter.loadData("",0);
    }

}