def METHOD_NAME(self):
    repo_id = self.integration.repo_id
    gl_project = self.integration.rpc.projects.get(repo_id)
    gl_issue = gl_project.issues.get(self.existing_bug_id)
    # make sure there are no comments to confuse the test
    initial_comment_count = 0
    for comment in gl_issue.notes.list():
        initial_comment_count += 1
        self.assertNotIn("Confirmed via test execution", comment.body)
    # simulate user adding a new bug URL to a TE and clicking
    # 'Automatically update bug tracker'
    result = self.rpc_client.TestExecution.add_link(
        {
            "execution_id": self.execution_1.pk,
            "is_defect": True,
            "url": self.existing_bug_url,
        },
        True,
    )
    # making sure RPC above returned the same URL
    self.assertEqual(self.existing_bug_url, result["url"])
    # wait until comments have been refreshed b/c this seem to happen async
    retries = 0
    while len(gl_issue.notes.list()) <= initial_comment_count:
        time.sleep(1)
        retries += 1
        self.assertLess(retries, 20)
    # sort by id b/c the gitlab library returns newest comments first but
    # that may be depending on configuration !
    last_comment = sorted(gl_issue.notes.list(), key=lambda x: x.id)[-1]
    # assert that a comment has been added as the last one
    # and also verify its text
    for expected_string in [
        "Confirmed via test execution",
        f"TR-{self.execution_1.run_id}: {self.execution_1.run.summary}",
        self.execution_1.run.get_full_url(),
        f"TE-{self.execution_1.pk}: {self.execution_1.case.summary}",
    ]:
        self.assertIn(expected_string, last_comment.body)
    # remove comment at the end to satisfy AssertNotIn above
    last_comment.delete()