{
ConstraintValidator<DifferentName, TestBean> constraintValidator =
this.constraintValidatorFactory.getInstance(DifferentNameValidator.class);
constraintValidator.initialize(DefaultAnnotation.of(DifferentName.class));
boolean result = constraintValidator.isValid(new TestBean("Tester", "Tester"),
new ConstraintValidatorContext()
{
public void disableDefaultConstraintViolation()
{
//