ListPresenter extends BasePresenter<ListArcticleView> { @Override public void detachView() { super.detachView(); getBlogPosts.unsubscribe(); } @Inject  ListPresenter(GetBlogPosts getBlogPosts); @Override void attachView(ListArcticleView mvpView); @Override void detachView(); void getPosts(int page, boolean isUpdate);  }
@Test public void testOnDestroy() throws Exception { presenter.detachView(); Mockito.verify(getPosts).unsubscribe(); }