@Test
public void settingsContainClusterName() throws Exception {

    EsConfig esConfig = new EsConfig(clusterName, nodes);
    assertThat(esConfig.toBasicSettings().get("cluster.name"), is(clusterName));
}