ReaderViewPresenter extends BasePresenter<ReaderView> implements TTSPlayerFragment.OnTTSStopSpeakListener { boolean isVolumeButtonsToScroll() { return preferenceHelper.volumeButtonsToScroll(); } @Inject  ReaderViewPresenter(Librarian librarian, PreferenceHelper prefHelper, AnalyticsHelper helper); @Override void onStopSpeak(); @Override void onViewCreated();  }
@Test public void isVolumeButtonsToScroll() throws Exception { when(preferenceHelper.volumeButtonsToScroll()).thenReturn(false); assertFalse(presenter.isVolumeButtonsToScroll()); }