def METHOD_NAME(
    self,
    app: Flask,
    with_db_and_bpmn_file_cleanup: None,
) -> None:
    process_instance = self._create_process_instance()
    assert not ProcessInstanceLockService.has_lock(process_instance.id)
    queue_entries = ProcessInstanceQueueService.entries_with_status("not_started", None, round(time.time()))
    check_passed = False
    for entry in queue_entries:
        if entry.process_instance_id == process_instance.id:
            assert entry.locked_by is None
            check_passed = True
            break
    assert check_passed