### Question:
MessageQueue { public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); } MessageQueue(); void submitMsg(Message msg); Message retrieveMsg();  }### Answer:
@Test public void messageQueueTest() { MessageQueue msgQueue = new MessageQueue(); msgQueue.submitMsg(new Message("MessageQueue Test")); assertEquals("MessageQueue Test", msgQueue.retrieveMsg().getMsg()); }
@Test public void messageQueueTest() { MessageQueue msgQueue = new MessageQueue(); msgQueue.submitMsg(new Message("MessageQueue Test")); assertEquals(msgQueue.retrieveMsg().getMsg(), "MessageQueue Test"); }