protected function shouldHandleCommand(CommandInterface $command) { $this->getCommandBus()->shouldReceive('handle')->once()->with((new SimilarTo())->compare($command)); }