### Question:
PreviewFpsRangeSelectors { public static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> rangeWithHighestFps() { return new SelectorFunction<Collection<Range<Integer>>, Range<Integer>>() { @Override public Range<Integer> select(Collection<Range<Integer>> items) { if (items.isEmpty()) { return null; } return Collections.max(items, COMPARATOR_BY_BOUNDS); } }; }  static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> fromExactFps(int fps); static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> nearestToExactFps(int fps); static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> rangeWithHighestFps(); static SelectorFunction<Collection<Range<Integer>>, Range<Integer>> rangeWithLowestFps();  }### Answer:
@Test public void rangeWithHighestFps() throws Exception { List<Range<Integer>> availableRanges = Arrays.<Range<Integer>>asList( Ranges.continuousRange(24000, 30000), Ranges.continuousRange(30000, 34000), Ranges.continuousRange(30000, 36000) ); Range<Integer> result = PreviewFpsRangeSelectors .rangeWithHighestFps() .select(availableRanges); assertEquals( Ranges.continuousRange(30000, 36000), result ); }