'Test using stream callback handlers.'

def testCallback(self):

    def callback_handler(stanza):
        self.xmpp.send_raw('\n                                                        <message>\n                                                                <body>Success!</body>\n                                                        </message>\n                                                ')
    callback = Callback('Test    Callback', MatchXPath('{test}tester'), callback_handler)
    self.xmpp.register_handler(callback)
    self.recv('<tester    xmlns="test"    />')
    msg = self.Message()
    msg['body'] = 'Success!'
    self.send(msg)
