{
final String channelName = "/service/test";
final AtomicReference<CountDownLatch> connectLatch = new AtomicReference<>(new CountDownLatch(1));
final CountDownLatch publishLatch = new CountDownLatch(1);
final CountDownLatch failureLatch = new CountDownLatch(1);
BayeuxClient client = new BayeuxClient(cometdURL, new LongPollingTransport(null, httpClient))
{
@Override
protected AbstractSessionChannel newChannel(ChannelId channelId)
{
return new BayeuxClientChannel(channelId)