client.getConnectionStateListenable().addListener(listener);
client.start();
client.create().inBackground().forPath("/");
ConnectionState polled = queue.poll(timing.forWaiting().seconds(), TimeUnit.SECONDS);
Assert.assertEquals(polled, ConnectionState.SUSPENDED);
polled = queue.poll(timing.forWaiting().seconds(), TimeUnit.SECONDS);
Assert.assertEquals(polled, ConnectionState.LOST);
}
finally