docstr: Test submit AnalyticDB Spark SQL Application works as expected.
docstr_tok: ["Test","submit","AnalyticDB","Spark","SQL","Application","works","as","expected","."]
code: def test_execute(self, mock_hook):
      """Test submit AnalyticDB Spark SQL Application works as expected."""
      operator = AnalyticDBSparkSQLOperator(
          sql=MOCK_SQL,
          cluster_id=MOCK_CLUSTER_ID,
          rg_name=MOCK_RG_NAME,
          adb_spark_conn_id=MOCK_ADB_SPARK_CONN_ID,
          region=MOCK_REGION,
          task_id=MOCK_TASK_ID,
      )
  
      operator.execute(None)
  
      mock_hook.assert_called_once_with(
          adb_spark_conn_id=MOCK_ADB_SPARK_CONN_ID, region=MOCK_REGION
      )
      mock_hook.return_value.submit_spark_sql.assert_called_once_with(
          cluster_id=MOCK_CLUSTER_ID,
          rg_name=MOCK_RG_NAME,
          sql=MOCK_SQL,
          conf=None,
          driver_resource_spec=None,
          executor_resource_spec=None,
          num_executors=None,
          name=None,
      )
  
file_path: airflow/tests/providers/alibaba/cloud/operators/test_analyticdb_spark.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.alibaba.cloud.operators.analyticdb_spark import AnalyticDBSparkBaseOperator, AnalyticDBSparkBatchOperator, AnalyticDBSparkSQLOperator
label_desc: Use image node_id 1 for calling the TestAnalyticDBSparklSQLOperator obj's underlying member method code with example usage: obj.test_execute(mock_hook) without return types