docs: public void setMode(final String mode) {
          this.mode = Strings.toLowerCase(mode);
          if (mode == null || !MODES.contains(mode)) {
              throw new IllegalArgumentException("Invalid mode [" + mode + "]");
          }
      }