### Question:
DefaultTrackSelector extends MappingTrackSelector { public void setParameters(Parameters parameters) { Assertions.checkNotNull(parameters); if (!parametersReference.getAndSet(parameters).equals(parameters)) { invalidate(); } } DefaultTrackSelector(); @Deprecated @SuppressWarnings("deprecation")  DefaultTrackSelector(BandwidthMeter bandwidthMeter);  DefaultTrackSelector(TrackSelection.Factory trackSelectionFactory); void setParameters(Parameters parameters); void setParameters(ParametersBuilder parametersBuilder); Parameters getParameters(); ParametersBuilder buildUponParameters(); @Deprecated final void setRendererDisabled(int rendererIndex, boolean disabled); @Deprecated final boolean getRendererDisabled(int rendererIndex); @Deprecated final void setSelectionOverride(
      int rendererIndex, TrackGroupArray groups, SelectionOverride override); @Deprecated final boolean hasSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated @Nullable final SelectionOverride getSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverride(int rendererIndex, TrackGroupArray groups); @Deprecated final void clearSelectionOverrides(int rendererIndex); @Deprecated final void clearSelectionOverrides(); @Deprecated void setTunnelingAudioSessionId(int tunnelingAudioSessionId); void experimental_allowMultipleAdaptiveSelections();  }### Answer:
@Test public void testSetParameterWithDefaultParametersDoesNotNotifyInvalidationListener() throws Exception { trackSelector.setParameters(Parameters.DEFAULT); verify(invalidationListener, never()).onTrackSelectionsInvalidated(); }
@Test public void testSetParameterWithNonDefaultParameterNotifyInvalidationListener() throws Exception { Parameters parameters = Parameters.DEFAULT.buildUpon().setPreferredAudioLanguage("eng").build(); trackSelector.setParameters(parameters); verify(invalidationListener).onTrackSelectionsInvalidated(); }
@Test public void testSetParameterWithSameParametersDoesNotNotifyInvalidationListenerAgain() throws Exception { ParametersBuilder builder = Parameters.DEFAULT.buildUpon().setPreferredAudioLanguage("eng"); trackSelector.setParameters(builder.build()); trackSelector.setParameters(builder.build()); verify(invalidationListener, times(1)).onTrackSelectionsInvalidated(); }