BasePresenter implements Presenter { protected void addSubscription(Subscription subscription) { compositeSubscription.add(subscription); } BasePresenter(); @Override void onStop();  }
@Test public void testAddSubscription() throws Exception { Subscription test = new TestSubscriber<>(); basePresenter.addSubscription(test); assertTrue(basePresenter.compositeSubscription.hasSubscriptions()); }