expectedExceptions = IllegalArgumentException.class,
expectedExceptionsMessageRegExp = "HV000056.*"
)
public void testCascadingDefinitionOnInvalidMethodParameter() {
ConstraintMapping mapping = config.createConstraintMapping();
mapping.type( GreetingService.class )
.method( "greet", User.class )
.parameter( 1 )
.valid();
config.buildValidatorFactory().getValidator();