public void TestBearerAuth()
        {
            var endpoint = new EntryEndpoint(new Uri("http://localhost/"), token: "token");

            endpoint.HttpClient.DefaultRequestHeaders.Authorization
            .Should().Be(new AuthenticationHeaderValue("Bearer", "token"));
        }
        public void TestBasicAuth()
        {
            var endpoint = new EntryEndpoint(new Uri("http://localhost/"), new NetworkCredential("user", "password"));

            endpoint.HttpClient.DefaultRequestHeaders.Authorization
            .Should().Be(new AuthenticationHeaderValue("Basic", "dXNlcjpwYXNzd29yZA=="));
        }