@TestForIssue(jiraKey = "HV-920")
public void url_validator_using_regexp_only_can_be_configured_via_constraint_definition_contributor() {
HibernateValidatorConfiguration config = ValidatorUtil.getConfiguration( HibernateValidator.class );
config.addConstraintDefinitionContributor(
new ConstraintDefinitionContributor() {
@Override
public void collectConstraintDefinitions(ConstraintDefinitionBuilder builder) {
builder.constraint( URL.class )
.includeExistingValidators( false )
.validatedBy( RegexpURLValidator.class );