<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 xml:lang="en" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" from="test-d" id="ef79e36e-ea02-4d0b-b87e-5b3de852a098" xmlns="jabber:client"/>
</INPUT>
<INPUT test='Test 4'>
<stream:features><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/><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></stream:features>
</INPUT>
<OUTPUT test='Test 4'>
<iq type='get' id='reg1'><query xmlns='jabber:iq:register'/></iq>
</OUTPUT>
<INPUT test='Test 4'>
<iq id="reg1" type="result"><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 id="reg2" type="result"/>
</INPUT>

</test-history>