Groovy object validation