@Test
public void testValid() throws Exception {

	
	CustomValidationConfiguration validationSpec = new CustomValidationConfiguration();
    validationSpec.setStopSeverity(Severity.Info);
    validationSpec.setRejectSeverity(Severity.Info);
    
    MessageValidatorConfiguration validator = new MessageValidatorConfiguration();
    validator.setFactory(ValidatorMock.Factory.class.getName());
    validator.addSetting(ValidatorMock.SEVERITY, "");        
    validationSpec.addValidator(validator);
    
    ValidationResult result = new DefaultValidationExecutor().validate(new UserMessage(), validationSpec);
           
    assertTrue(result.executedAllValidators());
    assertTrue(Utils.isNullOrEmpty(result.getValidationErrors()));
}