### Question:
DiscontinuationOrderRequestValidator implements Validator { @Override public boolean supports(Class clazz) { return DiscontinuationOrderRequest.class.equals(clazz); }  @Override boolean supports(Class clazz); @Override void validate(Object obj, Errors errors);  }### Answer:
@Test public void shouldReturnTrueOnlyForDiscontinuationOrderRequestObjects() throws Exception { assertTrue(discontinuationOrderRequestValidator.supports(DiscontinuationOrderRequest.class)); }
@Test public void shouldReturnFalseForOtherObjectTypes() throws Exception { assertFalse(discontinuationOrderRequestValidator.supports(Object.class)); }