OUTPUT: <body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' xml:lang='en' rid='1216' content='text/xml; charset=utf-8' to='test-d' ver='1.6'/>
INPUT: <stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
OUTPUT: <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
INPUT: <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9Ik5rV3U1VGhpVEJpQVRyTVRsdkhobTFGTTJCakpuWVk1UmJEVGhLMlIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
OUTPUT: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9Ik5rV3U1VGhpVEJpQVRyTVRsdkhobTFGTTJCakpuWVk1UmJEVGhLMlIiLG5jPTAwMDAwMDAxLGNub25jZT0iQkl3U3dLeE54d1k2YTVxeG56aXNkRzZJak5DbGtacHNnU3owWkNmNyIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1mMDkwOTYzMTZmMjU3NzUxMzNkNmY0NGQ4NzBjYzg1Zixxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
INPUT: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1lZTIzMjg1MDdkNzUyNzg5NDBhMDk0ZjJjZDhhOWU4YQ==</success>
OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:features><register xmlns="http://jabber.org/features/iq-register"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
OUTPUT: <iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="bind1" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
OUTPUT: <iq to="test-d" id="disco_1" type="get"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>
INPUT: <iq id="disco_1" from="test-d" type="result"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Tigase ver. 4.1.0-b1315" type="im" category="server"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/><feature var="http://jabber.org/protocol/commands"/><feature var="http://jabber.org/protocol/stats"/><feature var="jabber:iq:auth"/><feature var="jabber:iq:privacy"/><feature var="jabber:iq:private"/><feature var="jabber:iq:register"/><feature var="jabber:iq:version"/><feature var="jabber:iq:roster"/><feature var="jabber:iq:roster-dynamic"/><feature var="urn:ietf:params:xml:ns:xmpp-bind"/><feature var="urn:ietf:params:xml:ns:xmpp-sasl"/><feature var="urn:ietf:params:xml:ns:xmpp-session"/><feature var="urn:xmpp:ping"/><feature var="vcard-temp"/></query></iq>
OUTPUT: <iq to="test-d" id="disco_2" type="get"><query xmlns="http://jabber.org/protocol/disco#items"/></iq>
INPUT: <iq id="disco_2" from="test-d" type="result"><query xmlns="http://jabber.org/protocol/disco#items"><item name="Server configuration" node="config" jid="basic-conf@test-d"/><item name="XEP-0114" jid="ext-comp@test-d"/><item name="Publish-Subscribe" jid="muc.test-d"/><item name="Publish-Subscribe" jid="pubsub.test-d"/><item name="Stanza Receiver" jid="srecv.test-d"/><item name="Server statistics" node="stats" jid="stats@test-d"/><item name="VHosts Manager" jid="vhost-man@test-d"/></query></iq>
