assertTrue(callbacks.add(cb));
disco.discoverRemoteJid(REMOTE_DOMAIN, cb);
}
// Expect only one disco request to be sent.
assertEquals(1, transport.packetsSent);
Packet packet = transport.lastPacketSent;
assertEquals(REMOTE_DOMAIN, packet.getTo().toString());
assertEquals(LOCAL_JID, packet.getFrom().toString());
assertEquals(EXPECTED_DISCO_ITEMS_GET, packet.toString());
XmppUtil.fakeUniqueId = DISCO_INFO_ID;
manager.receivePacket(createDiscoItems(true /* wave */, true /* pubsub */));
manager.receivePacket(createDiscoInfo(true /* wave */));