public async Task Should_get_channels()
        {
            var channels = await managementClient.GetChannelsAsync().ConfigureAwait(false);

            foreach (var channel in channels)
            {
                Console.Out.WriteLine("channel.Name = {0}", channel.Name);
                Console.Out.WriteLine("channel.User = {0}", channel.User);
                Console.Out.WriteLine("channel.PrefetchCount = {0}", channel.PrefetchCount);
            }
        }
        /// <summary>
        ///     A list of all open channels.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        public static IReadOnlyList <Channel> GetChannels(
            [NotNull] this IManagementClient source,
            CancellationToken cancellationToken = default
            )
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            return(source.GetChannelsAsync(cancellationToken)
                   .GetAwaiter()
                   .GetResult());
        }