public function it_can_serialize_a_command() { $this->commandSerializer->serialize('test_command')->willReturn('serialized'); $this->serializeCommand('test_command')->shouldReturn('serialized'); $this->serializeCommand('test_command'); }