assertNotNull(Validation.errors(".version"));
Error error = Validation.errors(".version").get(0);
System.out.println(error.getKey());
assertEquals("The object was changed. Your version is 1 the database version is 2. " +
"<a href=\"/@tests/models.OptimisticLockingModelPlayTest.class\">Reload</a> " +
"and do your changes again.", error.message());
}
@Entity
public static class TestModel extends OptimisticLockingModel {