code: public void expectMatch(String name, String message, List<String> values) {
          String value = Optional.ofNullable(get(name)).orElse("");
  
          if (!(values).contains(value)) {
              addError(name, Optional.ofNullable(message).orElse(messages.get(Validation.MATCH_VALUES_KEY.name(), name)));
          }
      }
docs: Validates to fields to (case-sensitive) match
  
  @param name The field to check
  @param message A custom error message instead of the default one
  @param values A list of given values to check against