public void testLookupSpecializedIQHandler() {
StanzaHandlerLookup stanzaHandlerLookup = initStanzaHandlerLookup();
stanzaHandlerLookup.addDictionary(new BaseStreamStanzaDictionary());
NamespaceHandlerDictionary testDictionary = new NamespaceHandlerDictionary("test:namespace:OK");
testDictionary.register(new TestIQHandler("testOK", "test:namespace:OK"));
stanzaHandlerLookup.addDictionary(testDictionary);
Stanza stanza = buildStanza("testOK", "test:namespace:FAIL");
StanzaHandler handler = stanzaHandlerLookup.getHandler(stanza);
assertTrue("handler not found for NS", handler instanceof ServiceUnavailableStanzaErrorHandler);