public function testApiSolve_ThrowsException_WhenParamOriginDoesNotExist()
{
$solver = $this->createSolver();
$callable = $this->createCallableMock();
$callable->expects($this->once())->method('__invoke')->with($this->isInstanceOf(IllegalCallException::class));
$solver->solve(new Exception(), [])->then(null, $callable);
}