root.add(new LeafNode(serviceConfiguration, testNode, client));
assertNotNull(root.find(testNode)); // should be there
AbstractStanzaGenerator sg = getDefaultStanzaGenerator();
Stanza stanza = sg.getStanza(client, pubsubService, "id123", testNode);
ResponseStanzaContainer result = sendStanza(stanza, true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.ERROR.value(),response.getType());
assertEquals("id123", response.getAttributeValue("id")); // IDs must match
XMLElement error = response.getInnerElements().get(1); // jump over the original request
XMLElement conflict = error.getFirstInnerElement();