def METHOD_NAME(self):
    group_doc = {
        'name': 'g1',
        '_id': 'group1',
        'users': []
    }
    # no change if user not in group
    update_es_user_with_groups(group_doc)
    self._check_es_user(None, None)
    # user added to group
    group_doc['users'] = [self.user_id]
    update_es_user_with_groups(group_doc)
    self._check_es_user(['group1'], ['g1'])
    # re-process group with no change
    update_es_user_with_groups(group_doc)
    self._check_es_user(['group1'], ['g1'])
    # user added to new group
    new_group = {
        'name': 'g2',
        '_id': 'group2',
        'users': [self.user_id]
    }
    update_es_user_with_groups(new_group)
    self._check_es_user(['group1', 'group2'], ['g1', 'g2'])