### Question:
PriorityMessageQueue { public void add(T t) { ensureCapacity(); queue[size] = t; size++; maxHeapifyUp(); } PriorityMessageQueue(T[] queue); T remove(); void add(T t); boolean isEmpty(); void print();  }### Answer:
@Test public void add() { var stringPriorityMessageQueue = new PriorityMessageQueue<>(new Integer[2]); stringPriorityMessageQueue.add(1); stringPriorityMessageQueue.add(5); stringPriorityMessageQueue.add(10); stringPriorityMessageQueue.add(3); assertEquals(10, (int) stringPriorityMessageQueue.remove()); }