def METHOD_NAME(process_manager: ProcessManager):
    last_processes = process_manager.get_last_processes()
    assert len(last_processes) == 1 and last_processes[0].rowid == process_manager.current_process.rowid
    fake_process = TriblerProcess.current_process(ProcessKind.Core, manager=process_manager)
    fake_process.pid = fake_process.pid + 1
    fake_process.become_primary()
    last_processes = process_manager.get_last_processes()
    assert len(last_processes) == 2
    assert last_processes[0].rowid == process_manager.current_process.rowid
    assert last_processes[1].rowid == fake_process.rowid