public UserTokenDto setTokenHash(String tokenHash) {
    this.tokenHash = checkTokenHash(tokenHash);
    return this;
  }
@Test
  void fail_if_token_hash_is_longer_than_255_characters() {
    assertThatThrownBy(() -> new UserTokenDto().setTokenHash(randomAlphabetic(256)))
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Token hash length (256) is longer than the maximum authorized (255)");
  }