def METHOD_NAME(app_mock, tmp_path):
    coll_mgr = CollectionManager(app_mock)
    directory = tmp_path / 'sub'
    directory.mkdir()
    coll_mgr.default_dir = str(directory)
    # Simulate a fake Album.fuo file.
    album = 'fuo://fake/albums/0'
    f = directory / 'Albums.fuo'
    f.touch()
    f.write_text(f'{album}\n')
    # Check if the library collection file is generated.
    coll_mgr.generate_library_coll_if_needed([str(f)])
    library_coll_file = directory / 'library.fuo'
    assert library_coll_file.exists()
    # Check if the album is copied to library collection.
    with library_coll_file.open() as f:
        content = f.read()
    assert album in content