'Test mapping engine when group_ids is explicitly set.
Also test blacklists on group ids'

def test_rule_engine_group_ids_mapping_blacklist(self):

    mapping = mapping_fixtures.MAPPING_GROUPS_IDS_BLACKLIST
    assertion = mapping_fixtures.GROUP_IDS_ASSERTION
    rp = mapping_utils.RuleProcessor(FAKE_MAPPING_ID, mapping['rules'])
    mapped_properties = rp.process(assertion)
    self.assertIsNotNone(mapped_properties)
    self.assertEqual('opilotte', mapped_properties['user']['name'])
    self.assertListEqual([], mapped_properties['group_names'])
    self.assertItemsEqual(['abc123', 'ghi789', 'klm012'], mapped_properties['group_ids'])
