1. Start the server
2. Log in from an XMPP client that can do service discovery
3. Log into the admin console and disable the service by setting the system property xmpp.pubsub.enabled to false
4. Perform service discovery from the client and check that pubsub is not there
5. Try using pubsub from the client (that supports it) and see that it does not work (or use manual XML to test this)
6. Enable the service and verify again mentioned things