assertThat(clearIndicesCacheResponse.failedShards(), equalTo(0));
logger.info("Optimizing");
OptimizeResponse optimizeResponse = client1.admin().indices().prepareOptimize("test").execute().actionGet();
assertThat(optimizeResponse.successfulShards(), equalTo(10));
assertThat(optimizeResponse.failedShards(), equalTo(0));
GetResponse getResult;
logger.info("Get [type1/1]");
for (int i = 0; i < 5; i++) {