@Test
public void testValidateUpdate() throws Exception {

    try {
        validator.validateUpdate(JsonHelper.update("{email:'bad'}", TestValidateModel.class), fieldData);
        fail("Expected DataValidationException");
    } catch (DataValidationException e) {
        assertEquals(1, e.getErrors().size());
    }
    assertTrue(validator.validateUpdate(JsonHelper.update("{email:'ok@example.com'}", TestValidateModel.class), fieldData));
}