}
@Test
public void acceptField() throws Exception {
Locale locale = entityManager.find(Locale.class, pk);
ValidationVisitor visitor = new ValidationVisitor();
Collection<ValidationError> errors = visitor.visit(locale);
assertTrue("No errors for valid entities", errors.size() == 0);
errors = visitor.visit(new Locale());
assertTrue("Errors if missing properties", errors.size() == 2);
}