def METHOD_NAME(
    mock_send_push_notification_to_fcm_relay,
    settings,
    make_organization_and_user,
):
    settings.LICENSE = OPEN_SOURCE_LICENSE_NAME
    mock_error_cb = Mock()
    # create a user and connect a mobile device
    _, user = make_organization_and_user()
    device = FCMDevice.objects.create(user=user, registration_id="test_device_id")
    mock_message = {"foo": "bar"}
    utils.send_push_notification(device, mock_message, mock_error_cb)
    mock_error_cb.assert_called_once_with()
    mock_send_push_notification_to_fcm_relay.assert_not_called()