// Allow long poll to establish
Thread.sleep(1000);
final CountDownLatch latch = new CountDownLatch(1);
ServerSession session = bayeux.getSession(client.getId());
session.addListener(new ServerSession.RemoveListener()
{
@Override
public void removed(ServerSession session, boolean timeout)
{
latch.countDown();