RepositorySentenceFetchExecutor implements SentenceFetchExecutor { @Override public void fetchTodaysSentence(boolean manual) { mSentenceRepository.fetchTodaysSentence(manual); } RepositorySentenceFetchExecutor(SentenceRepository sentenceRepository); @Override void fetchTodaysSentence(boolean manual);  }
@Test public void testManualFetchTodaysSentence() { mRepositorySentenceFetchExecutor.fetchTodaysSentence(true); verify(mSentenceRepository).fetchTodaysSentence(true); }
@Test public void testNotManualFetchTodaysSentence() { mRepositorySentenceFetchExecutor.fetchTodaysSentence(false); verify(mSentenceRepository).fetchTodaysSentence(false); }