### Question:
CreateFactTypeRequest implements ValidatingRequest { public String getValidator() { return validator; }  String getName(); CreateFactTypeRequest setName(String name); float getDefaultConfidence(); CreateFactTypeRequest setDefaultConfidence(float defaultConfidence); String getValidator(); CreateFactTypeRequest setValidator(String validator); String getValidatorParameter(); CreateFactTypeRequest setValidatorParameter(String validatorParameter); List<FactObjectBindingDefinition> getRelevantObjectBindings(); CreateFactTypeRequest setRelevantObjectBindings(List<FactObjectBindingDefinition> relevantObjectBindings); CreateFactTypeRequest addRelevantObjectBinding(FactObjectBindingDefinition relevantObjectBinding); List<MetaFactBindingDefinition> getRelevantFactBindings(); CreateFactTypeRequest setRelevantFactBindings(List<MetaFactBindingDefinition> relevantFactBindings); CreateFactTypeRequest addRelevantFactBinding(MetaFactBindingDefinition relevantFactBinding);  }### Answer:
@Test public void testRequestValidationFailsOnNull() { Set<ConstraintViolation<CreateFactTypeRequest>> violations = getValidator().validate(new CreateFactTypeRequest()); assertEquals(2, violations.size()); assertPropertyInvalid(violations, "name"); assertPropertyInvalid(violations, "validator"); }