def METHOD_NAME(
    self, mock_workspace_hub_operation: WorkspaceHubOperations, mocker: MockFixture
) -> None:
    def outgoing_call(rg, name):
        return Workspace(name=name)._to_rest_object()
    mock_workspace_hub_operation._operation.get.side_effect = outgoing_call
    mocker.patch("azure.ai.ml.operations._workspace_operations_base.delete_resource_by_arm_id", return_value=None)
    with pytest.raises(Exception):
        mock_workspace_hub_operation.begin_delete("randstr", delete_dependent_resources=True)