<test-history test='Basic 20 (c2s)'>
<OUTPUT test='Basic 20 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:stream xmlns="jabber:client" id="f449cc59-14a7-4f89-a952-b5fa5fde096f" version="1.0" from="test-d" xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Basic 20 (c2s)'>
<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>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
</INPUT>
<OUTPUT test='Basic 20 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Basic 20 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:stream xmlns="jabber:client" id="f449cc59-14a7-4f89-a952-b5fa5fde096f" version="1.0" from="test-d" xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Basic 20 (c2s)'>
<stream:features><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='Basic 20 (c2s)'>
<message type="chat" id="1" to="admin@test-d/def-user-resource">
<body>Test message no without resource bind.</body>
</message>
</OUTPUT>
<INPUT test='Basic 20 (c2s)'>
<message xmlns="jabber:client" type="error" id="1" from="admin@test-d/def-user-resource"><body>Test message no without resource bind.</body><error type="auth" code="401"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">You must bind the resource first: http://www.xmpp.org/rfcs/rfc3920.html#bind</text></error></message>
</INPUT>

</test-history>