<test-history test='MUC 1 (c2s)'>
<OUTPUT test='MUC 1 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="11e876f2-753b-4736-b01b-4908d2d956b1" xmlns="jabber:client" from="test-d" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='MUC 1 (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"/><auth xmlns="http://jabber.org/features/iq-auth"/></stream:features>
</INPUT>
<OUTPUT test='MUC 1 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='MUC 1 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="11e876f2-753b-4736-b01b-4908d2d956b1" xmlns="jabber:client" from="test-d" version="1.0" xml:lang="en"/>
</INPUT>
<INPUT test='MUC 1 (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"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='MUC 1 (c2s)'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<iq id="bind1" xmlns="jabber:client" type="result" to="all-xmpp-test@test-d/def-user-resource"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='MUC 1 (c2s)'>
<presence id="1" from="all-xmpp-test@test-d/def-user-resource" to="new_chat@muc.test-d/my_nick">
<x xmlns="http://jabber.org/protocol/muc"/>
</presence>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<presence id="1" xmlns="jabber:client" from="new_chat@muc.test-d/my_nick" to="all-xmpp-test@test-d/def-user-resource">

<x xmlns="http://jabber.org/protocol/muc#user"><item role="moderator" affiliation="owner" nick="my_nick" jid="all-xmpp-test@test-d"/><status code="110"/><status code="201"/></x></presence>
</INPUT>

</test-history>