@Test
public void testSelectTracksWithinCapabilitiesSelectHigherNumChannel()
    throws Exception {

  Format higherChannelFormat =
      Format.createAudioSampleFormat(
          "audioFormat",
          MimeTypes.AUDIO_AAC,
          null,
          Format.NO_VALUE,
          Format.NO_VALUE,
          6,
          44100,
          null,
          null,
          0,
          null);
  Format lowerChannelFormat =
      Format.createAudioSampleFormat("audioFormat", MimeTypes.AUDIO_AAC, null, Format.NO_VALUE,
          Format.NO_VALUE, 2, 44100, null, null, 0, null);
  TrackGroupArray trackGroups = wrapFormats(higherChannelFormat, lowerChannelFormat);
  TrackSelectorResult result =
      trackSelector.selectTracks(
          new RendererCapabilities[] {ALL_AUDIO_FORMAT_SUPPORTED_RENDERER_CAPABILITIES},
          trackGroups,
          periodId,
          TIMELINE);
  assertFixedSelection(result.selections.get(0), trackGroups, higherChannelFormat);
}