106107108109110111112113114
@Test public void shouldUnwrapPropertyValuesDuringValueValidation() { Set<ConstraintViolation<Customer>> violations = validator.validateValue( Customer.class, "name", new StringProperty( "Bob" ) ); assertEquals( violations.size(), 1 ); }