<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" xmlns="jabber:client" xml:lang="en" from="test-d" id="dfcbbae7-e9a5-478b-a30e-5f55021adb62" version="1.0"/>
</INPUT>
<INPUT test='MUC 1 (c2s)'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></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" xmlns="jabber:client" xml:lang="en" from="test-d" id="dfcbbae7-e9a5-478b-a30e-5f55021adb62" version="1.0"/>
</INPUT>
<INPUT test='MUC 1 (c2s)'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><csi xmlns="urn:xmpp:csi:0"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></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 to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" type="result" 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='MUC 1 (c2s)'>
<presence to="new_chat@muc.test-d/my_nick" from="all-xmpp-test@test-d/def-user-resource" id="1">
<x xmlns="http://jabber.org/protocol/muc"/>
</presence>
</OUTPUT>
<INPUT test='MUC 1 (c2s)'>
<presence to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" from="new_chat@muc.test-d/my_nick" id="1">

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

</test-history>