StoreCredit { static List<Integer> lineToSortedInts(String line) { List<Integer> elementsSorted = lineToInts(line); mergeSort(elementsSorted); return elementsSorted; }    }
@Test public void testSort2() { String line = "20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1"; List<Integer> sorted = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20); List<Integer> output = StoreCredit.lineToSortedInts(line); assertArrayEquals(sorted.toArray(), output.toArray()); }