@Test(description = "HV-355 (parameter names of RangeDef wrong)")
public void testRangeDef() {
mapping.type( Runner.class )
.property( "age", METHOD )
.constraint( new RangeDef().min( 12 ).max( 99 ) );
config.addMapping( mapping );
Validator validator = config.buildValidatorFactory().getValidator();
Set<ConstraintViolation<Runner>> violations = validator.validate( new Runner() );
assertNumberOfViolations( violations, 1 );
assertConstraintViolation( violations.iterator().next(), "must be between 12 and 99" );