### Question:
Utils { public static AudioStream getHighestQualityAudio(List<AudioStream> audioStreams) { int highestQualityIndex = 0; for (int i = 1; i < audioStreams.size(); i++) { AudioStream audioStream = audioStreams.get(i); if (audioStream.avgBitrate > audioStreams.get(highestQualityIndex).avgBitrate) highestQualityIndex = i; } return audioStreams.get(highestQualityIndex); }  static int getDefaultResolution(String defaultResolution, String preferredFormat, List<VideoStream> videoStreams); static int getDefaultResolution(Context context, List<VideoStream> videoStreams); static int getPopupDefaultResolution(Context context, List<VideoStream> videoStreams); static int getPreferredAudioFormat(Context context, List<AudioStream> audioStreams); static AudioStream getHighestQualityAudio(List<AudioStream> audioStreams); static ArrayList<VideoStream> getSortedStreamVideosList(Context context, List<VideoStream> videoStreams, List<VideoStream> videoOnlyStreams, boolean ascendingOrder); static ArrayList<VideoStream> getSortedStreamVideosList(MediaFormat preferredFormat, boolean showHigherResolutions, List<VideoStream> videoStreams, List<VideoStream> videoOnlyStreams, boolean ascendingOrder); static void sortStreamList(List<VideoStream> videoStreams, final boolean ascendingOrder);  }### Answer:
@Test public void getHighestQualityAudioTest() throws Exception { assertEquals(320, Utils.getHighestQualityAudio(audioStreamsTestList).avgBitrate); }