final Map<String, String> settings = Maps.newHashMap();
final String esConfigFilePath = new File(Resources.getResource("org/graylog2/bindings/providers/elasticsearch.yml").toURI()).getAbsolutePath();
settings.put("elasticsearch_config_file", esConfigFilePath);
Configuration config = setupConfig(settings);
final Map<String, String> nodeSettings = EsNodeProvider.readNodeSettings(config);
assertNotEquals("cluster.name", config.getEsClusterName(), nodeSettings.get("cluster.name"));
assertNotEquals("node.name", config.getEsNodeName(), nodeSettings.get("node.name"));
assertNotEquals("node.master", Boolean.toString(config.isEsIsMasterEligible()), nodeSettings.get("node.master"));
assertNotEquals("node.data", Boolean.toString(config.isEsStoreData()), nodeSettings.get("node.data"));
assertNotEquals("http.enabled", Boolean.toString(config.isEsIsHttpEnabled()), nodeSettings.get("http.enabled"));
assertNotEquals("transport.tcp.port", String.valueOf(config.getEsTransportTcpPort()), nodeSettings.get("transport.tcp.port"));
assertNotEquals("discovery.initial_state_timeout", config.getEsInitialStateTimeout(), nodeSettings.get("discovery.initial_state_timeout"));
assertNotEquals("discovery.zen.ping.multicast.enabled", Boolean.toString(config.isEsMulticastDiscovery()),
nodeSettings.get("discovery.zen.ping.multicast.enabled"));
assertNotEquals("discovery.zen.ping.unicast.hosts",
config.getEsUnicastHosts(),
Lists.newArrayList(Splitter.on(",").split(nodeSettings.get("discovery.zen.ping.unicast.hosts"))));
}