async def METHOD_NAME(mock_format_exc: MagicMock) -> None:
    receive = AsyncMock()
    receive.return_value = {"type": "lifespan.startup"}
    send = AsyncMock()
    exception = ValueError("foo")
    mock_format_exc.return_value = str(exception)
    mock_on_startup = AsyncMock(side_effect=exception)
    async def on_startup() -> None:
        await mock_on_startup()
    router = ASGIRouter(app=Litestar(on_startup=[on_startup]))
    with pytest.raises(_ExceptionGroup):
        await router.lifespan(receive, send)
    assert send.call_count == 1
    send.assert_called_once_with({"type": "lifespan.startup.failed", "message": mock_format_exc.return_value})