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

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

    assertThat(underTest.getNodeName()).isEmpty();
  }