public async Task ListFileOrFolder_ThrowsException_WhenErrorOccursWithSendingRequest()
        {
            const string ErrorMessage    = "Something went wrong";
            var          httpHandlerMock = new HttpMessageHandlerMock();

            httpHandlerMock.SetException(new Exception(ErrorMessage));
            var httpClient = new HttpClient(httpHandlerMock);

            var egnyteClient = new EgnyteClient("token", "acme", httpClient);

            var exception = await AssertExtensions.ThrowsAsync <Exception>(
                () => egnyteClient.Files.ListFileOrFolder("path"));

            Assert.AreEqual(ErrorMessage, exception.Message);
            Assert.IsNull(exception.InnerException);
        }