assertEquals(3, relay.getCountRelayed()); // three subscribers
}
public void testPublishNoSuchNode() throws Exception {
DefaultPublishStanzaGenerator sg = new DefaultPublishStanzaGenerator();
Entity pubsubWrongNode = EntityImpl.parse("pubsub.vysper.org");
ResponseStanzaContainer result = sendStanza(sg.getStanza(client, pubsubWrongNode, "id123", "doesnotexist"), true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.ERROR.value(),response.getType());