Set<ConstraintViolation<Person>> violations = validator.validate( john );
assertNumberOfViolations( violations, 0 );
constraintValidatorFactory1.assertSize( 3 );
// getting a new validator with a new constraint factory
validator = factory.usingContext().constraintValidatorFactory( constraintValidatorFactory2 ).getValidator();
constraintValidatorFactory2.assertSize( 0 );
violations = validator.validate( john );
assertNumberOfViolations( violations, 0 );
constraintValidatorFactory2.assertSize( 3 );
constraintValidatorFactory1.assertConstraintValidatorInstancesAreNotShared( constraintValidatorFactory2 );