public function testApiPushProcessor_ThrowsException_WhenModelThrowsException()
{
$logger = $this->createLoggerMock();
$callable = function () {
};
$ex = new Exception();
$this->setExpectedException(WriteException::class);
$this->expect('pushProcessor', [$callable])->willThrow($ex);
$logger->pushProcessor($callable);
}