def METHOD_NAME(file, source):
    """
    Test symlink with an existing symlink to a different file with atomic=True
    Should replace the existing symlink with a new one to the correct location
    """
    dif_source = source.parent / "dif_source.txt"
    target = source.parent / "symlink.lnk"
    target.symlink_to(dif_source)
    try:
        file.symlink(str(source), str(target), atomic=True)
        assert salt.utils.path.readlink(str(target)) == str(source)
    finally:
        target.unlink()