/** * @expectedException LaravelItalia\Exceptions\NotFoundException */ public function testFindByIdThrowsExceptionIfNotFound() { $this->repository->findById(999); }