def METHOD_NAME(self):
    responses.add(
        method=responses.POST,
        url="https://example.com/link-issue",
        body="Something failed",
        status=500,
    )
    with pytest.raises(APIError):
        IssueLinkRequester.run(
            install=self.install,
            project=self.project,
            group=self.group,
            uri="/link-issue",
            fields={},
            user=self.user,
            action="create",
        )
    buffer = SentryAppWebhookRequestsBuffer(self.sentry_app)
    requests = buffer.get_requests()
    assert len(requests) == 1
    assert requests[0]["response_code"] == 500
    assert requests[0]["event_type"] == "external_issue.created"