public function testApiWire_ThrowsException_WhenModelThrowsException()
{
$this->setExpectedException(WriteException::class);
$container = $this->createContainer();
$this->container->add(Baz::class)->willThrow(new Exception())->shouldBeCalledTimes(1);
$container->wire(Baz::class, []);
}