public <T extends Annotation> void testExcludeExistingValidators() {
Configuration<?> config = TestUtil.getConfigurationUnderTest();
config.addMapping( TestUtil.getInputStreamForPath( packageName + mappingFile1 ) );
Validator validator = config.buildValidatorFactory().getValidator();
PropertyDescriptor propDescriptor = validator.getConstraintsForClass( Name.class )
.getConstraintsForProperty( "name" );
Set<ConstraintDescriptor<?>> descriptors = propDescriptor.getConstraintDescriptors();
assertEquals( descriptors.size(), 1, "There should only be one constraint." );
@SuppressWarnings("unchecked")
ConstraintDescriptor<T> descriptor = (ConstraintDescriptor<T>) descriptors.iterator().next();
List<Class<? extends ConstraintValidator<T, ?>>> validators = descriptor.getConstraintValidatorClasses();