public function testApiInfo_ThrowsException_WhenModelThrowsException()
{
$logger = $this->createLoggerMock();
$message = 'message';
$context = ['a' => 'A'];
$ex = new Exception();
$this->setExpectedException(WriteException::class);
$this->expect('info', [$message, $context])->willThrow($ex);
$logger->info($message, $context);
}