@Test
public void testEmptyParameters()
throws NoSuchMethodException {
HibernateValidatorConfiguration config = Validation.byProvider( HibernateValidator.class ).configure();
Validator validator = config
.parameterNameProvider( new PrefixableParameterNameProvider( "param" ) )
.buildValidatorFactory()
.getValidator();
Foo bar = new Bar( "" );
assertNumberOfViolations(validator.forExecutables().validateParameters( bar, bar.getClass().getMethod( "getSource" ), new Object[]{} ), 0);
}