void () { List<Integer> list1 = Collections.singletonList(0); List<Integer> list2 = Collections.singletonList(4); List<Integer> m = ContainerUtil.mergeSortedLists(list1, list2, Comparator.naturalOrder(), true); assertEquals(Arrays.asList(0, 4), m); m = ContainerUtil.mergeSortedLists(list2, list1, Comparator.naturalOrder(), true); assertEquals(Arrays.asList(0, 4), m); }