assertEquals( violations.size(), 3 );
}
@Test
public void shouldUnwrapPropertyValuesDuringParameterValidation() throws Exception {
Customer customer = new Customer();
Method method = Customer.class.getMethod( "setName", Property.class );
Object[] parameterValues = new Object[] { new Property<String>( "Bob" ) };
Set<ConstraintViolation<Customer>> violations = validator.forExecutables()
.validateParameters( customer, method, parameterValues );