CircularQueue { public boolean empty() { return !wrapped && in == out; } CircularQueue(int size); boolean empty(); boolean full(); boolean isWrapped(); void put(Object item); Object get(); String dump();  }
@Test public void empty() { System.out.println("testEmpty"); while (!queue.empty()) System.out.println(queue.get()); String msg = ""; try { queue.get(); } catch (CircularQueueException e) { msg = e.getMessage(); System.out.println(msg); } assertEquals(msg, "get() from empty CircularQueue"); showEmptiness(); }