def METHOD_NAME(tmp_path: Path):
    sample_path = get_sample('ELF/ELF64_x86-64_binary_ls.bin')
    stub        = lief.parse((CWD / "hello_lief.bin").as_posix())
    output      = tmp_path / "ls.segment"
    target = lief.parse(sample_path)
    for _ in range(4):
        segment                 = stub.segments[0]
        original_va             = segment.virtual_address
        segment.virtual_address = 0
        segment                 = target.add(segment)
        new_ep                  = (stub.header.entrypoint - original_va) + segment.virtual_address
        target.header.entrypoint = new_ep
    target.write(output.as_posix())
    st = os.stat(output)
    os.chmod(output, st.st_mode | stat.S_IEXEC)
    with Popen(output.as_posix(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) as P:
        stdout = P.stdout.read().decode("utf8")
        print(stdout)
        assert re.search(r'LIEF is Working', stdout) is not None