### Question:
PortalPreferenceFormValidator implements Validator { @Override public boolean supports(Class<?> clazz) { return PortalPreferenceForm.class.isAssignableFrom(clazz); }  @Override boolean supports(Class<?> clazz); @Override void validate(Object target, Errors errors);  }### Answer:
@Test public void testSupports() throws Exception { assertTrue(validator.supports(PortalPreferenceForm.class)); }