@Override
  public String getDocumentationLink(@Nullable String suffix) {
    return documentationBaseUrl + Optional.ofNullable(suffix).orElse("");
  }
@Test
  public void getDocumentationLink_whenSnapshot_returnLatest() {
    when(sonarQubeVersion.get().qualifier()).thenReturn("SNAPSHOT");
    documentationLinkGenerator = new DefaultDocumentationLinkGenerator(sonarQubeVersion, configuration);

    String generatedLink = documentationLinkGenerator.getDocumentationLink(TEST_SUFFIX);

    assertThat(generatedLink).isEqualTo(DOCUMENTATION_PUBLIC_URL + "latest/documentation/analyzing-source-code/scm-integration/");
  }