@Override
  public DefaultIssueLocation message(String message) {
    validateMessage(message);
    String sanitizedMessage = sanitizeNulls(message);
    this.message = abbreviate(trim(sanitizedMessage), Issue.MESSAGE_MAX_SIZE);
    return this;
  }
@Test
  public void should_validate_message_formatting() {
    List<NewMessageFormatting> messageFormattings = List.of(new DefaultMessageFormatting()
      .start(1)
      .end(3)
      .type(MessageFormatting.Type.CODE));
    DefaultIssueLocation location = new DefaultIssueLocation();

    assertThatThrownBy(() -> location.message("aa", messageFormattings))
      .isInstanceOf(IllegalArgumentException.class);
  }