public void testConnectListener() throws Throwable {
final boolean[] connected = new boolean[1];
final boolean[] disconnected = new boolean[1];
final boolean[] authenticated = new boolean[1];
myFacade.addConnectionListener(new ConnectionListener() {
@Override
public void connected(XMPPConnection connection) {
connected[0] = true;
}