public static String serialize(String key) {
    return SONAR_ISSUE_KEY_PREFIX + key + SONAR_ISSUE_KEY_SUFFIX;
  }
@Test
  public void should_serializeIssueKey() {
    String issueKey = RandomStringUtils.randomAlphanumeric(20);

    String serialized = SonarQubeIssueKeyFormatter.serialize(issueKey);

    String expectedSerializedKey = join("", SONAR_ISSUE_KEY_PREFIX, issueKey, SONAR_ISSUE_KEY_SUFFIX);
    assertThat(serialized).isEqualTo(expectedSerializedKey);
  }