public function test_command_extension_points()
{
$command = new CreateCart((string) CartId::generate(), 'PLN');
$extension = $this->prophesize(Extension::class);
$extension->expands($command)->willReturn(true);
$extension->pre($command, $this->serviceLocator)->shouldBeCalled();
$extension->post($command, $this->serviceLocator)->shouldBeCalled();
$this->extensionRegistry->register($extension->reveal());
$this->commandBus->handle($command);
}