public void testMultipleParameterConstraintsAtDifferentParameters() throws Exception {
ConstraintMapping mapping = config.createConstraintMapping();
mapping.type( GreetingService.class )
.constructor( String.class, String.class )
.parameter( 0 )
.constraint( new SizeDef().min( 1 ).max( 10 ) )
.parameter( 1 )
.constraint( new SizeDef().min( 1 ).max( 10 ) );
config.addMapping( mapping );
Constructor<GreetingService> constructor = GreetingService.class.getConstructor( String.class, String.class );
Object[] parameterValues = new Object[] { "", "" };