ConfigTree config = new ConfigTree("config");
InMemoryCommandQueue commandQueue = new InMemoryCommandQueue();
// receive should fail if the queue hasn't been opened yet...
try {
commandQueue.receiveCommand(0);
fail("Expected CommandQueueException.");
} catch (CommandQueueException e) {
// OK
}