### Question:
MaxHeap { public void insert(int val) { data[currentPosition] = val; maxHeapifyUp(currentPosition); currentPosition++; } MaxHeap(int size); int getParentIndex(int childIndex); int getParentData(int childIndex); int getLeftChildIndex(int parentIndex); int getLeftChild(int parentIndex); int getRightChildIndex(int parentIndex); int getRightChild(int parentIndex); void insert(int val); int getMax();  }### Answer:
@Test public void insertTest(){ maxHeap.insert(1); maxHeap.insert(2); maxHeap.insert(3); int max=maxHeap.getMax(); System.out.println(max); }