<test-history test='Test 20'>
<OUTPUT test='Test 20'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Test 20'>
<stream:stream xmlns="jabber:client" id="b285777d-1b50-4658-b70c-9d185b255307" xml:lang="en" from="test-d" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Test 20'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><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><register xmlns="http://jabber.org/features/iq-register"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
</INPUT>
<OUTPUT test='Test 20'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
</OUTPUT>
<INPUT test='Test 20'>
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InRlc3QtZCIsbm9uY2U9IlpiZGZncjg5aGsrcmFtcFBMVU1MY0JyYUh1NWFPYWhWUGEvbzVya1EiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
</INPUT>
<OUTPUT test='Test 20'>
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Y2hhcnNldD11dGYtOCx1c2VybmFtZT0iYWxsLXhtcHAtdGVzdCIscmVhbG09InRlc3QtZCIsbm9uY2U9IlpiZGZncjg5aGsrcmFtcFBMVU1MY0JyYUh1NWFPYWhWUGEvbzVya1EiLG5jPTAwMDAwMDAxLGNub25jZT0iOG5DaWhvWWwrWW9oem1UNGl0ZDBKekJaZ2F4Q2R2dSthM09NTUJsaiIsZGlnZXN0LXVyaT0ieG1wcC90ZXN0LWQiLG1heGJ1Zj02NTUzNixyZXNwb25zZT0xMGM1MzA4NmNiM2NkNmI1OGMwMGNmNTg0MDhmYzM2NCxxb3A9YXV0aCxhdXRoemlkPSJhbGwteG1wcC10ZXN0Ig==</response>
</OUTPUT>
<INPUT test='Test 20'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD05YzRjYmY0M2Y5N2U0NmUzM2NhMDY3NWQ5MTI0NDU2ZA==</success>
</INPUT>
<OUTPUT test='Test 20'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Test 20'>
<stream:stream xmlns="jabber:client" id="b285777d-1b50-4658-b70c-9d185b255307" xml:lang="en" from="test-d" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Test 20'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><register xmlns="http://jabber.org/features/iq-register"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Test 20'>
<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 20'>
<iq type="result" to="all-xmpp-test@test-d/def-user-resource" id="bind1"><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 20'>
<iq type="get" id="1">
<not-yet-supported xmlns="test:unsupported:feature"/></iq>
</OUTPUT>
<INPUT test='Test 20'>
<iq type="error" to="all-xmpp-test@test-d/def-user-resource" id="1"><not-yet-supported xmlns="test:unsupported:feature"/><error type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Feature not supported yet.</text></error></iq>
</INPUT>
<OUTPUT test='Test 20'>
<iq type="get" xmlns="jabber:client" to="test-d" id="agsXMPP_3">
<query xmlns="jabber:iq:agents"/></iq>
</OUTPUT>
<INPUT test='Test 20'>
<iq type="error" xmlns="jabber:client" to="all-xmpp-test@test-d/def-user-resource" id="agsXMPP_3" from="test-d"><query xmlns="jabber:iq:agents"/><error type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Feature not supported yet.</text></error></iq>
</INPUT>

</test-history>