private ValidatorFactory validatorFactory;
private ValidatorContext validatorContext;
public void testCustom() throws Exception {
final TraversableResolver traversableResolver = new DefaultTraversableResolver();
final ConstraintValidatorFactory constraintValidatorFactory = new GwtConstraintValidatorFactory();
final MessageInterpolator messageInterpolator = new GwtMessageInterpolator();
validatorContext.constraintValidatorFactory(constraintValidatorFactory)
.messageInterpolator(messageInterpolator)
.traversableResolver(traversableResolver);