// Make sure the thread is running.
assertTrue(consumerThread.isRunning);
commandQueue.addCommand("command1");
assertCommandReceived(consumerThread, "command1", 0);
commandQueue.addCommand("command2");
assertCommandReceived(consumerThread, "command2", 1);
commandQueue.addCommand("command3");
assertCommandReceived(consumerThread, "command3", 2);
// Stop the queue thread...