async def METHOD_NAME(
    self, prefect_client: PrefectClient, mock_runner_start: AsyncMock
):
    await run_sync_in_worker_thread(
        invoke_and_assert,
        command=["flow", "serve", "flows/hello_world.py:hello", "--name", "test"],
        expected_code=0,
        expected_output_contains=[
            "Your flow 'hello' is being served and polling for scheduled runs!",
            "To trigger a run for this flow, use the following command",
            "$ prefect deployment run 'hello/test'",
        ],
    )
    deployment = await prefect_client.read_deployment_by_name(name="hello/test")
    assert deployment is not None
    assert deployment.name == "test"
    assert deployment.entrypoint == "flows/hello_world.py:hello"
    mock_runner_start.assert_called_once()