def METHOD_NAME(self, mock_workspace_hub_operation: WorkspaceHubOperations) -> None:
    workspaceHub = WorkspaceHub(
        name="name",
        description="description",
    )
    def outgoing_call(rg, name, params, polling, cls):
        assert rg == "test_resource_group"
        assert name == "name"
        assert params.description == "description"
        assert polling is True
        assert callable(cls)
        return DEFAULT
    def outgoing_get_call(rg, name):
        return WorkspaceHub(name=name)._to_rest_object()
    mock_workspace_hub_operation._operation.get.side_effect = outgoing_get_call
    mock_workspace_hub_operation._operation.begin_update.side_effect = outgoing_call
    mock_workspace_hub_operation.begin_update(workspace_hub=workspaceHub, update_dependent_resources=True)
    mock_workspace_hub_operation._operation.begin_update.assert_called()