protected function buildInvoker($methodName, \closure $factory = null)
{
if ($factory === null) {
$factory = function ($methodName, $mock) {
return new mock\controller\invoker($methodName, $mock);
};
}
return $factory($methodName, $this->getMock());
}