<test-history test='PubSub 4'>
<OUTPUT test='PubSub 4'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='PubSub 4'>
<stream:stream version="1.0" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" id="7a66aed2-46c3-4010-af1e-eb5b36408d3e" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='PubSub 4'>
<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 4'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='PubSub 4'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='PubSub 4'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='PubSub 4'>
<stream:stream version="1.0" xmlns:stream="http://etherx.jabber.org/streams" from="test-d" id="7a66aed2-46c3-4010-af1e-eb5b36408d3e" xmlns="jabber:client" xml:lang="en"/>
</INPUT>
<INPUT test='PubSub 4'>
<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 4'>
<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 4'>
<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 4'>
<iq to="pubsub.test-d" type="set" from="all-xmpp-test@test-d/def-user-resource" id="affil1">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<affiliations node="princely_musings">
<affiliation jid="bard@shakespeare.lit" affiliation="publisher"/></affiliations>
</pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 4'>
<iq to="all-xmpp-test@test-d/def-user-resource" type="result" from="pubsub.test-d" id="affil1"/>
</INPUT>
<OUTPUT test='PubSub 4'>
<iq to="pubsub.test-d" type="get" from="all-xmpp-test@test-d/def-user-resource" id="affil2">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<affiliations node="princely_musings"/></pubsub>
</iq>
</OUTPUT>
<INPUT test='PubSub 4'>
<iq to="all-xmpp-test@test-d/def-user-resource" type="result" from="pubsub.test-d" id="affil2"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><affiliations node="princely_musings"><affiliation jid="bard@shakespeare.lit" affiliation="publisher"/><affiliation jid="all-xmpp-test@test-d" affiliation="owner"/></affiliations></pubsub></iq>
</INPUT>

</test-history>