public function testApiBind_ThrowsException_WhenModelThrowsException()
{
$this->setExpectedException(WriteException::class);
$container = $this->createContainer();
$baz = new Baz();
$this->container->add(Baz::class, $baz, true)->willThrow(new Exception())->shouldBeCalledTimes(1);
$container->bind(Baz::class, $baz);
}