assertEquals("Must be unique", error.message());
}
@Test
public void testMultiColumn() {
Author bob = Author.find("byName", "Bob").first();
Book firstBook = Book.find("byIsbn", "1").first();
firstBook.author = bob;
ValidationResult res = Validation.current().valid(firstBook);
assertFalse(res.ok);
assertNotNull(Validation.errors("firstBook.title"));