@Test
public void testGetCreateValidationErrors() throws Exception {

    List<ValidationError> errors = validator.getCreateValidationErrors(null, fieldData);
    assertEquals(1, errors.size());
    TestValidateModel model = TestValidateModel.builder().build();
    errors = validator.getCreateValidationErrors(model, fieldData);
    assertEquals(2, errors.size());
    assertEquals("is required", errors.get(0).getMessage());
    assertEquals("is required", errors.get(1).getMessage());
    model = TestValidateModel.builder().email("invalid").build();
    errors = validator.getCreateValidationErrors(model, fieldData);
    assertEquals(2, errors.size());
    assertEquals("is required", errors.get(0).getMessage());
    assertEquals("must be a well-formed email address", errors.get(1).getMessage());
    model = TestValidateModel.builder().email("example@example.com").type("type").loginAt(Instant.now()).build();
    errors = validator.getCreateValidationErrors(model, fieldData);
    assertEquals(1, errors.size());
    assertEquals("loginAt", errors.get(0).getField());
    assertEquals("is not creatable", errors.get(0).getMessage());
}