public void testClientLifecycle() throws Exception {
final AtomicBoolean created = new AtomicBoolean();
final AtomicBoolean destroyed = new AtomicBoolean();
bus.getExtension(ClientLifeCycleManager.class)
.registerListener(new ClientLifeCycleListener() {
public void clientCreated(Client client) {
created.set(true);
}
public void clientDestroyed(Client client) {