public function testCodeNotExecuted(callable $check)
{
$this->mutex->expects($this->any())->method("synchronized")->willReturnCallback(function (callable $block) {
return call_user_func($block);
});
$this->checkedLocking->setCheck($check);
$this->checkedLocking->then(function () {
$this->fail();
});
}