Queue { public boolean isEmpty() { return head == tail; } Queue();  Queue(int queueSize); void enqueue(Object element); Object dequeue(); boolean isEmpty(); boolean isFull();  }
@Test public void testIsEmpty() throws QueueOverflowException { Queue queue = new Queue(); Assert.assertTrue(queue.isEmpty()); queue.enqueue(1); Assert.assertFalse(queue.isEmpty()); }