assertFalse(a2.isValidateForSaveCalled());
}
public void testValidationModifyingContext() throws Exception {
ValidationDelegate delegate = new ValidationDelegate() {
public void validateForSave(Object object, ValidationResult validationResult) {
Artist a = (Artist) object;
Painting p = a.getObjectContext().newObject(Painting.class);