### Question:
LearnSort { public static int[] heapSort(int[] array) { for (int i = array.length; i > 0; i--) { maxHeapify(i, array); swap(0, i - 1, array); } return array; }  static int[] insertSort(int[] array); static int[] shellSort(int[] array); static int[] selectionSort(int[] array); static int[] heapSort(int[] array); static int[] bubbleSort(@NotNull int[] array); static int[] quickSort(@NotNull int[] array); static int[] mergingSort(int[] array); static int[] radixSort(@NotNull int[] arr); final static int[] originalArray; }### Answer:
@Test public void testHeapSort() throws Exception { Assert.assertThat(resultArray, Matchers.equalTo(LearnSort.heapSort(originalArray))); }