public void TranslateConnectionCloseDuringLinkCreationExceptionDetectsTheConnectionClosedObjectDisposedException()
        {
            var sourceException = new ObjectDisposedException("foo");
            var exception       = (sourceException.TranslateConnectionCloseDuringLinkCreationException("dummy") as EventHubsException);

            Assert.That(exception, Is.Not.Null, "The exception should have been translated to an Event Hubs exception.");
            Assert.That(exception.IsTransient, Is.False, "The translation exception should not allow retries.");
            Assert.That(exception.Reason, Is.EqualTo(EventHubsException.FailureReason.ClientClosed), "The translated exception should have the correct failure reason.");
            Assert.That(exception.InnerException, Is.EqualTo(sourceException), "The translated exception should wrap the source exception.");
        }