'Test a mapping that points to a group that does not exist.
For explicit mappings, we expect the group to exist in the backend,
but for lists, specifically blacklists, a missing group is expected
as many groups will be specified by the IdP that are not Keystone
groups.
The test scenario is as follows:
- Create group ``EXISTS``
- Set mapping rules for existing IdP with a blacklist
that passes through as REMOTE_USER_GROUPS
- Issue unscoped token with on group  ``EXISTS`` id in it'

def test_lists_with_missing_group_in_backend(self):

    domain_id = self.domainA['id']
    domain_name = self.domainA['name']
    group = unit.new_group_ref(domain_id=domain_id, name='EXISTS')
    group = self.identity_api.create_group(group)
    rules = {'rules': [{'local': [{'user': {'name': '{0}', 'id': '{0}'}}], 'remote': [{'type': 'REMOTE_USER'}]}, {'local': [{'groups': '{0}', 'domain': {'name': domain_name}}], 'remote': [{'type': 'REMOTE_USER_GROUPS'}]}]}
    self.federation_api.update_mapping(self.mapping['id'], rules)
