@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 message_whenSettingMessageWithFormattings_shouldReplaceNullChar() {
    assertThat(new DefaultIssueLocation().message("test " + '\u0000' + "123", Collections.emptyList()).message()).isEqualTo("test [NULL]123");
  }