public AppState create() {
    if (ClusterSettings.shouldStartHazelcast(settings)) {
      EsConnector esConnector = createEsConnector(settings.getProps());
      HazelcastMember hzMember = createHzMember(settings.getProps());
      AppNodesClusterHostsConsistency appNodesClusterHostsConsistency = AppNodesClusterHostsConsistency.setInstance(hzMember, settings);
      return new ClusterAppStateImpl(settings, hzMember, esConnector, appNodesClusterHostsConsistency);
    }
    return new AppStateImpl();
  }
@Test
  public void cluster_implementation_is_disabled_by_default() {
    TestAppSettings settings = new TestAppSettings();
    AppStateFactory underTest = new AppStateFactory(settings);

    assertThat(underTest.create()).isInstanceOf(AppStateImpl.class);
  }