ValidatorJsr303 extends AbstractValidator<V> { public ValidatorJsr303(Validator validator, Class<V> pojoType) { this(validator, pojoType, (String) null); } ValidatorJsr303(Validator validator, Class<V> pojoType);  ValidatorJsr303(Validator validator, Class<V> pojoType, Class<?>... groups);  ValidatorJsr303(Validator validator, Class<?> pojoType, String property);  ValidatorJsr303(Validator validator, Class<?> pojoType, String property, Class<?> propertyType);  ValidatorJsr303(Validator validator, Class<?> pojoType, String property, Class<?> propertyType,
      Class<?>... groups); @SuppressWarnings("unchecked") @Override P getProperty(TypedProperty<P> typedProperty); @Override ValidationFailure validate(V value, Object valueSource); Class<?> getPojoType(); String getProperty(); Class<?> getPropertyType(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testValidatorJsr303() { Validator validator = getValidator(); ValidatorJsr303<String> mandatoryStringValidator = new ValidatorJsr303<>(validator, TestBean.class, "mandatoryString"); ValidationFailure failure = mandatoryStringValidator.validate(null); assertNotNull(failure); assertEquals("has to be filled", failure.getMessage()); }