'Test _send_notification.
Test the private method _send_notification to ensure event_type,
payload, and context are built and passed properly.'

def test_send_notification(self):

    resource = uuid.uuid4().hex
    resource_type = EXP_RESOURCE_TYPE
    operation = CREATED_OPERATION
    conf = self.useFixture(config_fixture.Config(CONF))
    conf.config(notification_format='basic')
    expected_args = [{}, ('identity.%s.created' % resource_type), {'resource_info': resource}, 'INFO']
    with mock.patch.object(notifications._get_notifier(), '_notify') as mocked:
        notifications._send_notification(operation, resource_type, resource)
        mocked.assert_called_once_with(*expected_args)
