<test-history test='Privacy 2 (c2s)'>
<OUTPUT test='Privacy 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Privacy 2 (c2s)'>
<stream:stream id="aeee4c25-e3c3-4019-85ba-fb82185da62e" xml:lang="en" from="test-d" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0"/>
</INPUT>
<INPUT test='Privacy 2 (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='Privacy 2 (c2s)'>
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsbC14bXBwLXRlc3QAYWxsLXhtcHAtdGVzdC1wYXNzd29yZA==</auth>
</OUTPUT>
<INPUT test='Privacy 2 (c2s)'>
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
</INPUT>
<OUTPUT test='Privacy 2 (c2s)'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'>
</OUTPUT>
<INPUT test='Privacy 2 (c2s)'>
<stream:stream id="aeee4c25-e3c3-4019-85ba-fb82185da62e" xml:lang="en" from="test-d" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0"/>
</INPUT>
<INPUT test='Privacy 2 (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='Privacy 2 (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='Privacy 2 (c2s)'>
<iq id="bind1" to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" type="result"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>all-xmpp-test@test-d/def-user-resource</jid></bind></iq>
</INPUT>
<OUTPUT test='Privacy 2 (c2s)'>
<message type='chat' from='all-xmpp-test@test-d/def-user-resource' to='blocking-test-user_1@test-d/def-user-resource'>Test message no. 1, from: all-xmpp-test@test-d/def-user-resource.</message>
</OUTPUT>
<INPUT test='Privacy 2 (c2s)'>
<message from="blocking-test-user_1@test-d/def-user-resource" to="all-xmpp-test@test-d/def-user-resource" xmlns="jabber:client" type="error"><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Service not available.</text></error></message>
</INPUT>

</test-history>