OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream id="300e7c90-f19a-49e1-b58c-06257c55f4ee" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" xml:lang="en" version="1.0"/>
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">cmVhbG09InRlc3QtZCIsbm9uY2U9Imlpei9iZzBnbnp6LzVzRmx0UFQvZG4yUHViU085YXd3MUZxU1RhbWoiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
OUTPUT: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9Imlpei9iZzBnbnp6LzVzRmx0UFQvZG4yUHViU085YXd3MUZxU1RhbWoiLG5jPTAwMDAwMDAxLGNub25jZT0iT2pHVWZCTldFWGpETUIydlg2QWcySXE0Z3kwOFNYdkROZDNXYVBIYyIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1hOGY2NTg2Y2ZiM2FiNjYxYTcyNGE1YmUxN2U4NGEwNixxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
INPUT: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD05MDg5MTRlN2IwM2E2NjNiNjBjYjRiNmJlYTg5ZjVhYg==</success>
OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream id="300e7c90-f19a-49e1-b58c-06257c55f4ee" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" xml:lang="en" 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="vhost-man@test-d" id="aacaa" type="set"><command node="VHOSTS_REMOVE" xmlns="http://jabber.org/protocol/commands"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="aacaa" from="vhost-man@test-d" type="error"><command node="VHOSTS_REMOVE" xmlns="http://jabber.org/protocol/commands"/><error code="401" type="auth"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">You are not authorized for this action.</text></error></iq>
