root.add(new LeafNode(serviceConfiguration, testNode, client));
assertNotNull(root.find(testNode));
Entity clientNotAuthorized = new EntityImpl("darthvader", "deathstar.tld", null);
AbstractStanzaGenerator sg = getDefaultStanzaGenerator();
Stanza stanza = sg.getStanza(clientNotAuthorized, pubsubService, "id123", testNode);
ResponseStanzaContainer result = sendStanza(stanza, true);
assertTrue(result.hasResponse());
IQStanza response = new IQStanza(result.getResponseStanza());
assertEquals(IQStanzaType.ERROR.value(),response.getType());