<test-history test='PubSub 3'>
<OUTPUT test='PubSub 3'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 3'>
<stream:stream version="1.0" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" id="5ce07df0-e2cf-47d1-bb9c-ca859c44ec48" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='PubSub 3'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><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></stream:features>
</INPUT>
<OUTPUT test='PubSub 3'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='PubSub 3'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='PubSub 3'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 3'>
<stream:stream version="1.0" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" id="5ce07df0-e2cf-47d1-bb9c-ca859c44ec48" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='PubSub 3'>
<stream:features><register xmlns="http://jabber.org/features/iq-register"/><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></stream:features>
</INPUT>
<OUTPUT test='PubSub 3'>
<iq type='set' id='bind1'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>def-user-resource</resource></bind></iq>
</OUTPUT>
<INPUT test='PubSub 3'>
<iq to="all-xmpp-test@test-d/def-user-resource" 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='PubSub 3'>
<iq to="pubsub.test-d" type="set" from="all-xmpp-test@test-d/def-user-resource" id="subs1">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<subscriptions node="princely_musings">
<subscription jid="bard@shakespeare.lit" subscription="subscribed"/></subscriptions>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 3'>
<iq to="all-xmpp-test@test-d/def-user-resource" type="result" from="pubsub.test-d" id="subs1"/>
</INPUT>
<OUTPUT test='PubSub 3'>
<iq to="pubsub.test-d" type="get" from="all-xmpp-test@test-d/def-user-resource" id="subs2">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<subscriptions node="princely_musings"/></pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 3'>
<iq to="all-xmpp-test@test-d/def-user-resource" type="result" from="pubsub.test-d" id="subs2"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><subscriptions node="princely_musings"><subscription jid="bard@shakespeare.lit" subscription="subscribed"/><subscription jid="all-xmpp-test@test-d" subscription="subscribed"/></subscriptions></pubsub></iq>
</INPUT>

</test-history>