}
@Test
public void testValidate_Valid() throws Exception {
Map<String, PortalPreference> preferenceMap = new HashMap<String, PortalPreference>();
preferenceMap.put(TITLE_SUFFIX, new PortalPreferenceImpl(TITLE_SUFFIX, "- Rave unit test"));
preferenceMap.put(PAGE_SIZE, new PortalPreferenceImpl(PAGE_SIZE, "10"));
PortalPreferenceForm form = new PortalPreferenceForm(preferenceMap);
Errors errors = new BindException(form, "form");
validator.validate(form, errors);
assertFalse(errors.hasErrors());