'Test mapping engine when domain \'ephemeral\' is explicitly set.
For that, we use mapping rule MAPPING_EPHEMERAL_USER and assertion
EMPLOYEE_ASSERTION'

def test_mapping_federated_domain_specified(self):

    mapping = mapping_fixtures.MAPPING_EPHEMERAL_USER
    rp = mapping_utils.RuleProcessor(FAKE_MAPPING_ID, mapping['rules'])
    assertion = mapping_fixtures.EMPLOYEE_ASSERTION
    mapped_properties = rp.process(assertion)
    self.assertIsNotNone(mapped_properties)
    self.assertValidMappedUserObject(mapped_properties)
