def METHOD_NAME(
    self, m, mock_notif
):
    applicatie = ApplicatieFactory.create(heeft_alle_autorisaties=True)
    url = reverse(applicatie)
    # 1. check that notification task is called
    with self.captureOnCommitCallbacks(execute=True):
        response = self.client.delete(url)
    self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
    message = {
        "aanmaakdatum": "2019-01-01T12:00:00Z",
        "actie": "destroy",
        "hoofdObject": f"http://testserver{url}",
        "kanaal": "autorisaties",
        "kenmerken": {},
        "resource": "applicatie",
        "resourceUrl": f"http://testserver{url}",
    }
    mock_notif.assert_called_with(message)
    # 2. check that if task is failed, DB object is created for failed notification
    mock_nrc_oas_get(m)
    mock_notification_send(m, status_code=403)
    with self.assertRaises(NotificationException):
        send_notification(message)
    self.assertEqual(StatusLog.objects.count(), 1)
    logged_warning = StatusLog.objects.get()
    failed = FailedNotification.objects.get()
    self.assertEqual(failed.statuslog_ptr, logged_warning)
    self.assertEqual(failed.message, message)