/**
* @Then the command with ID :arg1 should resolve to :arg2
*/
public function theCommandWithIdShouldResolveTo($arg1, $arg2)
{
$serialized = $this->implementation->getQueueDriver()->readCommand('test_queue', $arg1);
$command = $this->implementation->getCommandSerializer()->unserialize($serialized);
\PHPUnit_Framework_Assert::assertEquals($command, $arg2);
}