public void MaxRetryExceptionInnerExceptionIsNullAsync()
		{
			var nodes = new Uri[]
			{
				new Uri("http://invalid_host:9300"),
				new Uri("http://invalid_host:9400"),
				new Uri("http://invalid_host:9500")
			};
			var connectionPool = new StaticConnectionPool(nodes);
			var settings = new ConnectionSettings(connectionPool)
				.DisablePing();
			var client = new ElasticClient(settings);

			var maxRetryException = Assert.Throws<MaxRetryException>(async () => await client.GetIndexAsync(g => g.Index("foo")));
			maxRetryException.InnerException.Should().NotBeNull();

			var aggregateException = maxRetryException.InnerException as AggregateException;
			aggregateException.Should().NotBeNull();
			aggregateException.InnerExceptions.Count.Should().Be(nodes.Count());
		}