MonetaryAmountMinValidator implements ConstraintValidator<MonetaryMin, MonetaryAmount> { @Override public boolean isValid(MonetaryAmount value, ConstraintValidatorContext context) { if (value == null) { return true; } return value.isGreaterThanOrEqualTo(value.getFactory().setNumber(number).create()); }  @Override void initialize(MonetaryMin constraintAnnotation); @Override boolean isValid(MonetaryAmount value,
                          ConstraintValidatorContext context);  }
@Test public void shouldReturnsTrueWhenIsNull() { Assertions.assertTrue(monetaryValidator.isValid(null, context)); }