assertNotNull( validator );
}
@Test
public void testByProvider() {
HibernateValidatorConfiguration config = Validation.byProvider( HibernateValidator.class ).configure();
config.messageInterpolator( new MyMessageInterpolator() )
.traversableResolver( new MyTraversableResolver() )
.constraintValidatorFactory( new MyConstraintValidatorFactory() );
ValidatorFactory factory = config.buildValidatorFactory();
Validator validator = factory.getValidator();
assertNotNull( validator );
}