@Override
  public Optional<String> getNodeName() {
    return Optional.ofNullable(nodeName);
  }
@Test
  public void getNodeName_whenClusterAndNameDefined_returnName() {
    String nodeName = "nodeName1";
    settings.setProperty("sonar.cluster.enabled", "true");
    settings.setProperty("sonar.cluster.node.name", nodeName);

    DefaultNodeInformation underTest = new DefaultNodeInformation(settings.asConfig());

    assertThat(underTest.getNodeName()).isNotEmpty();
    assertThat(underTest.getNodeName().get()).startsWith(nodeName);
  }