I just pinched the code from [this](https://github.com/sequelize/sequelize/blob/master/test/dao.validations.test.js#L517) test case.