public function testApiAlias_ThrowsException_WhenModelThrowsException()
{
$this->setExpectedException(WriteException::class);
$container = $this->createContainer();
$this->container->get(Baz::class)->willThrow(new Exception())->shouldBeCalledTimes(1);
$container->alias(BazInterface::class, Baz::class);
}