OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream id="1f84b2a5-7309-4c7d-b243-5680fcab7819" 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">cmVhbG09InRlc3QtZCIsbm9uY2U9ImlTRmhSOTlVQWQwWUswNlkxVzE4eWZCSkVzbWU2VDgvU3BERTVjUVkiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
OUTPUT: <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9ImlTRmhSOTlVQWQwWUswNlkxVzE4eWZCSkVzbWU2VDgvU3BERTVjUVkiLG5jPTAwMDAwMDAxLGNub25jZT0iWSt0bXovL1BOWkhWUXVrc2g0MC9ScXdET0h3TmJWNG5aYUNYQWFBMiIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT1lZjcwYWYzZmM4ZTA2MzhlY2EyMDZlYmY1YWYzODZjYixxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
INPUT: <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1iNjA5YzQ0ZjA3OTUxYTk3NDk2ZTcyNjk4NzRmYWUyYg==</success>
OUTPUT: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
INPUT: <stream:stream id="1f84b2a5-7309-4c7d-b243-5680fcab7819" 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 type="get" id="privacy_1" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_1" type="result"><query xmlns="jabber:iq:privacy"/></iq>
OUTPUT: <iq type="set" id="privacy_2" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><list name='public'><item type='jid'	value='tybalt@example.com' action='deny' order='3'/><item type='jid' value='paris@example.org' action='deny' order='5'/><item action='allow' order='68'/></list></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_2" type="result"/>
OUTPUT: <iq type="get" id="privacy_3" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_3" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/></query></iq>
OUTPUT: <iq type="get" id="privacy_4" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><list name="public"/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_4" type="result"><query xmlns="jabber:iq:privacy"><list name="public"><item action="deny" order="3" type="jid" value="tybalt@example.com"/><item action="deny" order="5" type="jid" value="paris@example.org"/><item action="allow" order="68"/></list></query></iq>
OUTPUT: <iq type="set" id="privacy_5" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><active name="public"/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_5" type="result"/>
OUTPUT: <iq type="get" id="privacy_6" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_6" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/><active name="public"/></query></iq>
OUTPUT: <iq type="set" id="privacy_7" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><default name="public"/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_7" type="result"/>
OUTPUT: <iq type="get" id="privacy_8" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_8" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/><default name="public"/><active name="public"/></query></iq>
OUTPUT: <iq type="set" id="privacy_9" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><default/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_9" type="result"/>
OUTPUT: <iq type="get" id="privacy_10" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_10" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/><active name="public"/></query></iq>
OUTPUT: <iq type="set" id="privacy_11" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><active/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_11" type="result"/>
OUTPUT: <iq type="get" id="privacy_12" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_12" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/></query></iq>
OUTPUT: <iq type="set" id="privacy_13" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"><list name="public"/></query></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_13" type="result"/>
OUTPUT: <iq type="get" id="privacy_14" from="all-xmpp-test@test-d/def-user-resource"><query xmlns="jabber:iq:privacy"/></iq>
INPUT: <iq to="all-xmpp-test@test-d/def-user-resource" id="privacy_14" type="result"><query xmlns="jabber:iq:privacy"><list name="public"/></query></iq>
