@Test
public void testValidateCreate() throws Exception {

    try {
        validator.validateCreate(TestValidateModel.builder().email("ok@example.com").build(), fieldData);
        fail("Expected DataValidationException");
    } catch (DataValidationException e) {
        assertEquals(1, e.getErrors().size());
    }
    assertTrue(validator.validateCreate(TestValidateModel.builder().email("ok@example.com").type("type").build(), fieldData));
}