### Question:
ArrayBinaryHeap { public int getSize() { return size; } private  ArrayBinaryHeap(int height, @Nonnull Comparator<T> comparator);   ArrayBinaryHeap(@Nonnull T[] array, @Nonnull Comparator<T> comparator); @Nonnull T getRoot(); int getRootIndex(); int getSize(); boolean isValidIndex(int index); static void heapSort(@Nonnull T[] a, @Nonnull Comparator<? super T> c);  }### Answer:
@Test public void testShouldHaveCorrectSize() throws Exception { assertEquals(1, newIntArrayBinaryHeap(0).getSize()); assertEquals(3, newIntArrayBinaryHeap(1).getSize()); assertEquals(7, newIntArrayBinaryHeap(2).getSize()); assertEquals(15, newIntArrayBinaryHeap(3).getSize()); }