// Wait for the long poll to establish
Thread.sleep(1000);
// Test publish triggered by an external event
final LocalSession emitter = bayeux.newLocalSession("test_emitter");
emitter.handshake();
final String data = "test_data";
bayeux.getChannel(channelName).publish(emitter, data);
Assert.assertTrue(publishLatch.get().await(5, TimeUnit.SECONDS));
// Make sure long poll is not responded