<test-history test='Test 4'>
<OUTPUT test='Test 4'>
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' to='test-d' version='1.0'/>
</OUTPUT>
<INPUT test='Test 4'>
<stream:stream xmlns="jabber:client" id="0032ed76-2814-4ab8-ab2b-f737661678db" xml:lang="en" from="test-d" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
</INPUT>
<INPUT test='Test 4'>
<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>DIGEST-MD5</mechanism><mechanism>CRAM-MD5</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='Test 4'>
<iq type='get' id='reg1'><query xmlns='jabber:iq:register'/></iq>
</OUTPUT>
<INPUT test='Test 4'>
<iq type="result" id="reg1"><query xmlns="jabber:iq:register"><instructions>Choose a user name and password for use with this service.Please provide also your e-mail address.</instructions><username/><password/><email/></query></iq>
</INPUT>
<OUTPUT test='Test 4'>
<iq type='set' id='reg2'><query xmlns='jabber:iq:register'><username>all-xmpp-test</username><password>all-xmpp-test-password</password><email>test_user@localhost</email></query></iq>
</OUTPUT>
<INPUT test='Test 4'>
<iq type="result" id="reg2"/>
</INPUT>

</test-history>