@CheckForNull
  static String checkEventName(@Nullable String name) {
    if (name == null) {
      return null;
    }
    checkArgument(name.length() <= MAX_NAME_LENGTH, "Event name length (%s) is longer than the maximum authorized (%s). '%s' was provided.",
      name.length(), MAX_NAME_LENGTH, name);
    return name;
  }
@Test
  void fail_if_name_longer_than_400() {
    assertThatThrownBy(() -> EventValidator.checkEventName(repeat("a", 400 + 1)))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessageContaining("Event name length (401) is longer than the maximum authorized (400).");
  }