ReaderViewPresenter extends BasePresenter<ReaderView> implements TTSPlayerFragment.OnTTSStopSpeakListener { void onPause() { librarian.setCurrentVerseNumber(getView().getCurrVerse()); } @Inject  ReaderViewPresenter(Librarian librarian, PreferenceHelper prefHelper, AnalyticsHelper helper); @Override void onStopSpeak(); @Override void onViewCreated();  }
@Test public void onPause() throws Exception { when(view.getCurrVerse()).thenReturn(10); presenter.onPause(); verify(librarian).setCurrentVerseNumber(eq(10)); }