public async Task SetQueueACLAsync_NonExistentQueue_ThrowsQueueNotFoundException()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var queueName = GenerateSampleQueueName();
            var expectedStartTime = _util.GetTruncatedUtcNow();
            var expectedIdentifier = new QueueSignedIdentifier()
            {
                Id = "abc-123",
                AccessPolicy = new QueueAccessPolicy()
                {
                    StartTime = expectedStartTime,
                    Expiry = expectedStartTime.AddHours(1),
                    Permission = QueueSharedAccessPermissions.Add
                }
            };

            await client.SetQueueACLAsync(queueName, new List<QueueSignedIdentifier>() { expectedIdentifier });

            //expects exception
        }
        public async Task SetQueueACLAsync_ValidQueue_AddsPolicyToQueue()
        {
            IQueueServiceClient client = new QueueServiceClient(_accountSettings);
            var queueName = GenerateSampleQueueName();
            _util.CreateQueue(queueName);
            var expectedStartTime = _util.GetTruncatedUtcNow();
            var expectedIdentifier = new QueueSignedIdentifier()
            {
                Id = "abc-123",
                AccessPolicy = new QueueAccessPolicy()
                {
                    StartTime = expectedStartTime,
                    Expiry = expectedStartTime.AddHours(1),
                    Permission = QueueSharedAccessPermissions.Add
                }
            };

            await client.SetQueueACLAsync(queueName, new List<QueueSignedIdentifier>() { expectedIdentifier });

            var actual = _util.GetQueuePermissions(queueName);
            Assert.AreEqual(1, actual.SharedAccessPolicies.Count);
            _util.AssertIdentifierInSharedAccessPolicies(actual.SharedAccessPolicies, expectedIdentifier);
        }