conn.publish(new MsgUnit(pubKey, content.getBytes(), pubQos));
}
ret = msgInterceptor.waitOnUpdate(3000L, 2);
assertEquals("We expected two messages: one for the excess of the callback queue and the other for the excess of the history queue of the __sys__Event topic", 2, ret);
msgInterceptor.clear();
conn.disconnect(new DisconnectQos(global));
}
{
Global global = new Global(args);
qos = new ConnectQos(global, userName + "/" + sessionId, "secret");