public PermissionTemplateCharacteristicDto setPermission(String permission) {
    checkArgument(permission.length() <= MAX_PERMISSION_KEY_LENGTH, "Permission key length (%s) is longer than the maximum authorized (%s). '%s' was provided.",
      permission.length(), MAX_PERMISSION_KEY_LENGTH, permission);
    this.permission = permission;
    return this;
  }
@Test
  void check_permission_field_length() {
    assertThatThrownBy(() -> underTest.setPermission(Strings.repeat("a", 65)))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Permission key length (65) is longer than the maximum authorized (64). " +
        "'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' was provided.");
  }