OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="9fe62b3c-4c47-4275-9cb9-d596bd845190" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
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">cmVhbG09InRlc3QtZCIsbm9uY2U9IkVGYWlUcWFwaE5oNGFVWlNJMFYvaHNtcTlyaXhtV3FVbDErUHNaNzAiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
OUTPUT: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IkVGYWlUcWFwaE5oNGFVWlNJMFYvaHNtcTlyaXhtV3FVbDErUHNaNzAiLG5jPTAwMDAwMDAxLGNub25jZT0iNGwxejdUamxlOWp3TTZmblR1ZUt0Q25leURzZHlZT21PTVQzSUgydiIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT03NDAyNDdkM2VhNWRhYzIxMmEyZGEzMzYzY2Q2MGIwZSxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
INPUT: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1jZmZjZTlmYWFhOTY3YzA4ZDNhMjYwOTVlMjQ5NjkxYw==</success>
OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream xmlns="jabber:client" version="1.0" xml:lang="en" id="9fe62b3c-4c47-4275-9cb9-d596bd845190" xmlns:stream="http://etherx.jabber.org/streams" from="test-d"/>
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" type="result" id="bind1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
OUTPUT: <message type='chat' from='all-xmpp-test@test-d/def-user-resource' to='all-xmpp-test@test-d/def-user-resource'>Test message no. 1, from: all-xmpp-test@test-d/def-user-resource.</message>
INPUT: <message to="all-xmpp-test@test-d/def-user-resource" type="chat" from="all-xmpp-test@test-d/def-user-resource">Test message no. 1, from: all-xmpp-test@test-d/def-user-resource.</message>
