### Question:
PriorityMessageQueue { public boolean isEmpty() { return size == 0; } PriorityMessageQueue(T[] queue); T remove(); void add(T t); boolean isEmpty(); void print();  }### Answer:
@Test public void isEmpty() { var stringPriorityMessageQueue = new PriorityMessageQueue<>(new Integer[2]); assertTrue(stringPriorityMessageQueue.isEmpty()); stringPriorityMessageQueue.add(1); stringPriorityMessageQueue.remove(); assertTrue(stringPriorityMessageQueue.isEmpty()); }