public function testExecution()
{
$consumer = $this->getMock('OldSound\\RabbitMqBundle\\RabbitMq\\ConsumerInterface');
$consumer->expects($this->once())->method('execute');
$producer = new ExecutorProducer($consumer);
$producer->publish('a message');
}