public void ServiceCollectionWithEndpoint()
        {
            ServiceCollection services = new ServiceCollection();
            EndpointCollection endpoints = services.WithService("Test", "/") as EndpointCollection;

            services.WithEndpoint("accounts/{id}");
            Assert.AreEqual(1, endpoints.Count());
            Assert.AreEqual(0, endpoints.First().ParameterTypes.Count);

            services.WithEndpoint("foo/{id}/bar", new { id = typeof(long) });
            Assert.AreEqual(2, endpoints.Count());
            Assert.IsTrue(endpoints.Last().ParameterTypes.ContainsKey("id"));
            Assert.AreEqual(typeof(long), endpoints.Last().ParameterTypes["id"]);
        }