{
System.out
.println("AppTest.main(...).new IZkStateListener() {...}.handleNewSession()");
}
};
client.subscribeStateChanges(stateChangeListener);
boolean waitUntilConnected = client.waitUntilConnected(10000,
TimeUnit.MILLISECONDS);
System.out.println("Connected " + waitUntilConnected);
client.waitForKeeperState(KeeperState.Disconnected, 20000,
TimeUnit.MILLISECONDS);