### Question:
NavigationSpeechPlayer implements SpeechPlayer { @Override public void onOffRoute() { speechPlayerProvider.onOffRoute(); } NavigationSpeechPlayer(SpeechPlayerProvider speechPlayerProvider); @Override void play(SpeechAnnouncement speechAnnouncement); @Override boolean isMuted(); @Override void setMuted(boolean isMuted); @Override void onOffRoute(); @Override void onDestroy();  }### Answer:
@Test public void onOffRoute_providerOnOffRouteIsCalled() { SpeechPlayerProvider provider = mock(SpeechPlayerProvider.class); NavigationSpeechPlayer navigationSpeechPlayer = new NavigationSpeechPlayer(provider); navigationSpeechPlayer.onOffRoute(); verify(provider).onOffRoute(); }
@Test public void onDestroy_providerOnDestroyIsCalled() { SpeechPlayerProvider provider = mock(SpeechPlayerProvider.class); NavigationSpeechPlayer navigationSpeechPlayer = new NavigationSpeechPlayer(provider); navigationSpeechPlayer.onOffRoute(); verify(provider).onOffRoute(); }