public MetricDto setDescription(@Nullable String description) {
    this.description = checkMetricDescription(description);
    return this;
  }
@Test
  void fail_if_description_longer_than_255_characters() {
    String a256 = repeat("a", 256);

    assertThatThrownBy(() -> underTest.setDescription(a256))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Metric description length (256) is longer than the maximum authorized (255). '" + a256 + "' was provided.");
  }