<test-history test='Test 19'>
<OUTPUT test='Test 19'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Test 19'>
<stream:stream xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" id="1e92749b-0579-44e3-b619-28bc39b6e87f" xmlns="jabber:client"/>
</INPUT>
<INPUT test='Test 19'>
<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></stream:features>
</INPUT>
<OUTPUT test='Test 19'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Test 19'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9IlI4MVNaV0RUNjduR204b2cvQmVuVXphaFBkQ0ZtYm4wNndEMG1nUEIiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Test 19'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IlI4MVNaV0RUNjduR204b2cvQmVuVXphaFBkQ0ZtYm4wNndEMG1nUEIiLG5jPTAwMDAwMDAxLGNub25jZT0iZnFnTE0xNHEyRE92NllSeTdmTEMzZHNQSEF0SkY3ak1HNStFTngyWCIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT02Mzg3OWRiZjdlMDYwMDEyYzE3NGUxYzVmZTg1MDAzMixxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Test 19'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1iZjk1NjdjZWVhNzAwMWNjOTBlMWJmNjRmZmJhZDIzNA==</success>
</INPUT>
<OUTPUT test='Test 19'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Test 19'>
<stream:stream xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" id="1e92749b-0579-44e3-b619-28bc39b6e87f" xmlns="jabber:client"/>
</INPUT>
<INPUT test='Test 19'>
<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"/></stream:features>
</INPUT>
<OUTPUT test='Test 19'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='Test 19'>
<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>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="1" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/></query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1" type="result"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs"/></query></iq>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="2" type="set">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick>
</exodus>
</query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="2" type="result"/>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="3" type="set">
<query xmlns="jabber:iq:private">
<test-data xmlns="tigase:test">
<data-element>and the content</data-element>
</test-data>
</query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="3" type="result"/>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="4" type="get">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs"/></query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="4" type="result"><query xmlns="jabber:iq:private"><exodus xmlns="exodus:prefs">
<defaultnick>Hamlet</defaultnick>
</exodus></query></iq>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="5" type="get">
<query xmlns="jabber:iq:private">
<test-data xmlns="tigase:test"/></query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="5" type="result"><query xmlns="jabber:iq:private"><test-data xmlns="tigase:test">
<data-element>and the content</data-element>
</test-data></query></iq>
</INPUT>
<OUTPUT test='Test 19'>
<iq to="hamlet@shakespeare.lit" id="1003" type="set">
<query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Macbeth</defaultnick>
</exodus>
</query>
</iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1003" from="hamlet@shakespeare.lit" type="error"><query xmlns="jabber:iq:private">
<exodus xmlns="exodus:prefs">
<defaultnick>Macbeth</defaultnick>
</exodus>
</query><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">You are not authorized to access this private storage.</text></error></iq>
</INPUT>
<OUTPUT test='Test 19'>
<iq id="1004" type="get">
<query xmlns="jabber:iq:private"/></iq>
</OUTPUT>
<INPUT test='Test 19'>
<iq to="all-xmpp-test@test-d/def-user-resource" id="1004" type="error"><query xmlns="jabber:iq:private"/><error code="406" type="modify"><not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Missing query child element</text></error></iq>
</INPUT>

</test-history>