### Question:
RadiologyReportValidator implements Validator { @Override public boolean supports(Class clazz) { return RadiologyReport.class.isAssignableFrom(clazz); }  @Override boolean supports(Class clazz); @Override void validate(Object obj, Errors errors);  }### Answer:
@Test public void shouldReturnFalseForOtherObjectTypes() throws Exception { assertFalse(radiologyReportValidator.supports(Object.class)); }
@Test public void shouldReturnTrueForRadiologyReportObjects() throws Exception { assertTrue(radiologyReportValidator.supports(RadiologyReport.class)); }