public void testIncludeAnnotations() {
Validator validator = TestUtil.getValidatorUnderTest();
BeanDescriptor beanDescriptor = validator.getConstraintsForClass( User.class );
assertNotNull( beanDescriptor );
PropertyDescriptor propDescriptor = beanDescriptor.getConstraintsForProperty( "lastname" );
assertNotNull( propDescriptor );
Set<ConstraintDescriptor<?>> constraintDescriptors = propDescriptor.getConstraintDescriptors();
assertEquals( constraintDescriptors.size(), 2, "There should be two constraints" );
boolean foundNotNullConstraint = false;
boolean foundPatternConstraint = false;
for ( ConstraintDescriptor<?> descriptor : constraintDescriptors ) {