Migrated XMPP test class to an jUnit TestCase