public void testOverridingMethodMayDefineSameConstraintsAsOverriddenMethod() {
ConstraintMapping mapping = config.createConstraintMapping();
mapping.type( GreetingService.class )
.method( "greet", String.class )
.parameter( 0 )
.constraint( new SizeDef().min( 5 ).max( 10 ) )
.type( GreetingServiceImpl.class )
.method( "greet", String.class )
.parameter( 0 )
.constraint( new SizeDef().min( 5 ).max( 10 ) );
config.addMapping( mapping );
GreetingService service = getValidatingProxy( wrappedObject, config.buildValidatorFactory().getValidator() );
try {