DefaultMediaClock implements MediaClock { @Override public void setPlaybackParameters(PlaybackParameters playbackParameters) { if (rendererClock != null) { rendererClock.setPlaybackParameters(playbackParameters); playbackParameters = rendererClock.getPlaybackParameters(); } standaloneClock.setPlaybackParameters(playbackParameters); } DefaultMediaClock(PlaybackParameterListener listener, Clock clock); void start(); void stop(); void resetPosition(long positionUs); void onRendererEnabled(Renderer renderer); void onRendererDisabled(Renderer renderer); long syncAndGetPositionUs(boolean isReadingAhead); @Override long getPositionUs(); @Override void setPlaybackParameters(PlaybackParameters playbackParameters); @Override PlaybackParameters getPlaybackParameters();  }
@Test public void standaloneSetPlaybackParameters_shouldNotTriggerCallback() { mediaClock.setPlaybackParameters(TEST_PLAYBACK_PARAMETERS); verifyNoMoreInteractions(listener); }