### Question:
CreateProjectInputValidator implements Validator { @Override public void validate(Object target, Errors errors) { validation.checkApiVersion(errors, validation.asInput(target)); validation.checkProjectId(errors, validation.asInput(target)); validation.checkOwnerUserId(errors, validation.asInput(target)); } CreateProjectInputValidator(); @Override boolean supports(Class<?> clazz); @Override void validate(Object target, Errors errors);  }### Answer:
@Test public void checkOwnerUserId_is_called_on_validation() { validatorToTest.validate(input, errors); verify(validation).checkOwnerUserId(errors, input); }
@Test public void checkApiVersion_is_called_on_validation() { validatorToTest.validate(input, errors); verify(validation).checkApiVersion(errors, input); }
@Test public void checkProjectId_is_called_on_validation() { validatorToTest.validate(input, errors); verify(validation).checkProjectId(errors, input); }