code:     public static void assertSettings(Settings left, Settings right, boolean compareClusterName) {
          ImmutableSet<Map.Entry<String, String>> entries0 = left.getAsMap().entrySet();
          Map<String, String> entries1 = right.getAsMap();
          assertThat(entries0.size(), equalTo(entries1.size()));
          for (Map.Entry<String, String> entry : entries0) {
              if(entry.getKey().equals(ClusterName.SETTING) && compareClusterName == false) {
                  continue;
              }
              assertThat(entries1, hasEntry(entry.getKey(), entry.getValue()));
          }
      }
  
  