'Test setting the bare JID with a user.'

def testJIDBareUser(self):

    j = JID(u'user@domain/resource')
    j.bare = u'otheruser@otherdomain'
    self.check_jid(j, u'otheruser', u'otherdomain', u'resource', u'otheruser@otherdomain', u'otheruser@otherdomain/resource', u'otheruser@otherdomain/resource')
