### Question:
BlockingQueue { public synchronized void enqueue (Object o) throws Closed { if (closed) throw new Closed(); queue.addLast (o); notify(); }  synchronized void enqueue(Object o); synchronized void requeue(Object o); synchronized Object dequeue(); synchronized Object dequeue(long timeout); synchronized void close(); synchronized int consumerCount(); synchronized int consumerDeficit(); synchronized boolean ready(); synchronized int pending(); LinkedList getQueue(); void setQueue(LinkedList queue);  }### Answer:
@Test public void testEnqueue() throws Throwable { BlockingQueue blockingQueue = new BlockingQueue(); blockingQueue.enqueue("testString"); assertEquals(1, blockingQueue.getQueue().size(), "blockingQueue.getQueue().size()"); assertEquals("testString", blockingQueue.getQueue().get(0), "blockingQueue.getQueue().get(0)"); }