'Test changing JID using aliases for domain.'

def testJIDaliases(self):

    j = JID(u'user@someserver/resource')
    j.server = u'anotherserver'
    self.check_jid(j, domain=u'anotherserver')
    j.host = u'yetanother'
    self.check_jid(j, domain=u'yetanother')
