// See #31: https://github.com/dadoonet/spring-elasticsearch/issues/31
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfReplicas(), is(0));
// Let's do the same thing with the second client
// We test how many shards and replica we have
response = client2.admin().cluster().prepareState().execute().actionGet();
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfShards(), is(1));
// We don't expect the number of replicas to be 4 as we won't merge _update_settings.json
// See #31: https://github.com/dadoonet/spring-elasticsearch/issues/31
assertThat(response.getState().getMetaData().getIndices().get("twitter").getNumberOfReplicas(), is(0));