HashValidator implements ValueValidator { @Override public void validate(String value) throws XDSMetaDataException { notNull(value, "value cannot be null"); metaDataAssert(HASH_PATTERN.matcher(value).matches(), INVALID_HASH_CODE, value); }  @Override void validate(String value);  }
@Test public void testValidateGoodCases() throws XDSMetaDataException { validator.validate("da39a3ee5e6b4b0d3255bfef95601890afd80709"); validator.validate("da39A3ee5e6b4b0d3255bfef95601890afd80709"); }