def METHOD_NAME(mocker, patcher, elf_file):
    run_mock = mocker.patch("subprocess.check_call")
    expected_proposed_rpath = list(elf_file.dependencies)[0].path.parent
    mocker.patch(
        "snapcraft.elf._patcher.Patcher.get_current_rpath",
        return_value=["$ORIGIN/current/rpath", str(expected_proposed_rpath)],
    )
    patcher.patch(elf_file=elf_file)
    assert run_mock.mock_calls == [
        call(
            [
                PATCHELF_PATH,
                "--set-interpreter",
                "/my/dynamic/linker",
                ANY,
            ]
        )
    ]