public void testMultiplePublishSameAddress() throws Exception {
server.start();
String contextPath = "/ctxt";
String path = "/echo";
//need to use the same HttpContext, otherwise Grizzly get confused
HttpContext ctx = GrizzlyHttpContextFactory.createHttpContext(server, contextPath, path);
for (int i = 0; i < 3; i++) {
String address = "http://localhost:" + currentPort + contextPath + path;
Endpoint endpoint = Endpoint.create(new EndpointBean());
endpoint.publish(ctx); // Use grizzly HTTP context for publishing