m.put("sender", new String[] {"100"});
m.put("ccMyself", new String[] {"false"});
ModelForm contactForm = new ModelForm(fieldFactory, hibernateUtil, managers);
contactForm.setModel(ContactBean.class);
contactForm.bind(m);
assertFalse(HibernateFormHelper.isValid(contactForm, ContactBean.class));
Map<String, String> errors = contactForm.getErrors();
assertTrue(errors.containsKey("value"));
assertEquals("value must be between 4 and 10", errors.get("value"));
assertTrue(errors.containsKey("subject"));