### Question:
CreateObjectTypeRequest implements ValidatingRequest { public String getValidator() { return validator; }  String getName(); CreateObjectTypeRequest setName(String name); String getValidator(); CreateObjectTypeRequest setValidator(String validator); String getValidatorParameter(); CreateObjectTypeRequest setValidatorParameter(String validatorParameter);  }### Answer:
@Test public void testRequestValidationFailsOnNull() { Set<ConstraintViolation<CreateObjectTypeRequest>> violations = getValidator().validate(new CreateObjectTypeRequest()); assertEquals(2, violations.size()); assertPropertyInvalid(violations, "name"); assertPropertyInvalid(violations, "validator"); }