public async Task ThrowExceptionOnBadAuthHeader(string authHeader)
        {
            HttpContext context = CreateHttpContext(authHeader);
            ClientCredentialsAuthorizationMiddleware middleware = CreateMiddleware();
            Func <Task> funcInvoke = async() => await middleware.Invoke(context);

            await funcInvoke.Should().ThrowAsync <Exception>();
        }
        public async Task ThrowUnauthorizedAccessExceptionOnNonAuthHeader()
        {
            HttpContext context = CreateHttpContext();
            ClientCredentialsAuthorizationMiddleware middleware = CreateMiddleware();
            Func <Task> funcInvoke = async() => await middleware.Invoke(context);

            await funcInvoke.Should().ThrowAsync <UnauthorizedAccessException>();
        }