public function testWrap()
{
$process = $this->prophesize(Process::class);
$payload = new Payload(__DIR__ . '/template/foo.template', [], null, $process->reveal());
$payload->setWrapper('bockfire');
$payload->setPhpPath('/boo/bar/php');
$process->setCommandLine(Argument::containingString('bockfire /boo/bar/php'))->shouldBeCalled();
$process->run()->shouldBeCalled();
$process->isSuccessful()->willReturn(true);
$process->getOutput()->willReturn('{"foo": "bar"}');
$payload->launch($payload);
}