def METHOD_NAME(monkeypatch):
    mock_agent = MagicMock()
    monkeypatch.setattr(prefect.cli.agent, "PrefectAgent", mock_agent)
    invoke_and_assert(
        command=[
            "agent",
            "start",
            "--prefetch-seconds",
            "30",
            "-q",
            "test",
            "--run-once",
        ],
        expected_code=0,
    )
    mock_agent.assert_called_once_with(
        work_queues=["test"],
        work_queue_prefix=ANY,
        work_pool_name=None,
        prefetch_seconds=30,
        limit=None,
    )