public void EnsureQueueTest()
        {
            const string response = @"{""auto_delete"": false, ""exclusive"": false, ""durable"": true,
                ""arguments"": { ""x-max-priority"": 5 } }";

            void validationCallback(HttpRequestMessage req, CancellationToken ct)
            {
                Assert.Equal(req.Method, HttpMethod.Get);
                Assert.Equal("/api/queues/%2f/?columns=durable,auto_delete,exclusive,arguments", req.RequestUri.PathAndQuery);
            }

            var manager = new RabbitMQApiManager("http://*****:*****@172.21.11.6:8080/api/", "guest", "guest", channelMock.Object,
                                                 client: GetMockHttpClient(
                                                     requestHandler: GetHttpRequestHandler(HttpStatusCode.OK, response),
                                                     callback: validationCallback
                                                     )
                                                 );

            channelMock.Setup(c => c.QueueDeclare("", It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <bool>(),
                                                  It.IsAny <IDictionary <string, object> >())).Returns(new QueueDeclareOk("autoGenQueue", 1, 1));

            Assert.Equal("autoGenQueue", manager.EnsureQueue(""));
            httpHandlerMock.Protected().Verify("SendAsync", Times.Once(), new object[] { ItExpr.IsAny <HttpRequestMessage>(), ItExpr.IsAny <CancellationToken>() });
        }
        public void EnsureAMQPQueueTest()
        {
            var manager = new RabbitMQApiManager("http://*****:*****@172.21.11.6:8080/api", "guest", "guest", channelMock.Object, null);

            Assert.Equal("amq.amazing", manager.EnsureQueue("amq.amazing"));
        }