public async Task DeleteBucket()
        {
            var createBucket =
                await _bucketsApi.CreateBucketAsync(GenerateName("robot sensor"), RetentionRule(), _organization);

            Assert.IsNotNull(createBucket);

            var foundBucket = await _bucketsApi.FindBucketByIdAsync(createBucket.Id);

            Assert.IsNotNull(foundBucket);

            // delete task
            await _bucketsApi.DeleteBucketAsync(createBucket);

            var ioe = Assert.ThrowsAsync <HttpException>(async() => await _bucketsApi.FindBucketByIdAsync(createBucket.Id));

            Assert.AreEqual("bucket not found", ioe.Message);
        }