assertEquals(ShardNotFoundException.class, listener.error.getClass()); assertEquals("no such shard", listener.error.getMessage());finalShardId shardId = shard.shardId(); client().admin().indices().prepareClose("test").get(); listener =newSyncedFlushUtil.LatchedListener(); flushService.attempt...