List<String> partitions = ImmutableList.of(
new PartitionName("quotes", Arrays.asList(new BytesRef("1395874800000"))).stringValue(),
new PartitionName("quotes", Arrays.asList(new BytesRef("1395961200000"))).stringValue()
);
GetSettingsResponse settingsResponse = client().admin().indices().prepareGetSettings(
partitions.get(0), partitions.get(1)
).execute().get();
assertThat(settingsResponse.getSetting(partitions.get(0), IndexMetaData.SETTING_NUMBER_OF_REPLICAS), is("1"));
assertThat(settingsResponse.getSetting(partitions.get(1), IndexMetaData.SETTING_NUMBER_OF_REPLICAS), is("0"));
String templateName = PartitionName.templateName("quotes");
GetIndexTemplatesResponse templatesResponse = client().admin().indices()
.prepareGetTemplates(templateName).execute().actionGet();
Settings templateSettings = templatesResponse.getIndexTemplates().get(0).getSettings();