code: def test_execute(self, mock_hook):
      operator = KylinCubeOperator(
          task_id="kylin_task", dag=self.dag, **self._config
      )
      hook = MagicMock()
      hook.invoke_command = [
          "fullbuild",
          "build",
          "merge",
          "refresh",
          "delete",
          "build_streaming",
          "merge_streaming",
          "refresh_streaming",
          "disable",
          "enable",
          "purge",
          "clone",
          "drop",
      ]
      mock_hook.return_value = hook
      mock_hook.cube_run.return_value = {}
  
      assert operator is not None
      assert self._config["kylin_conn_id"] == operator.kylin_conn_id
      assert self._config["project"] == operator.project
      assert self._config["cube"] == operator.cube
      assert self._config["command"] == operator.command
      assert self._config["start_time"] == operator.start_time
      assert self._config["end_time"] == operator.end_time
      operator.execute(None)
      mock_hook.assert_called_once_with(
          kylin_conn_id=self._config["kylin_conn_id"],
          project=self._config["project"],
          dsn=None,
      )
  
      mock_hook.return_value.cube_run.assert_called_once_with(
          "kylin_sales_cube",
          "build",
          end=datetime(2012, 1, 3, 0, 0),
          name=None,
          offset_end=None,
          offset_start=None,
          start=datetime(2012, 1, 2, 0, 0),
      )
  
file_path: airflow/tests/providers/apache/kylin/operators/test_kylin_cube.py
imports: from __future__ import annotations
  from datetime import datetime
  from unittest.mock import MagicMock, patch
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.models import DagRun, TaskInstance
  from airflow.models.dag import DAG
  from airflow.providers.apache.kylin.operators.kylin_cube import KylinCubeOperator
  from airflow.utils import timezone
label_desc: Use image node_id 2 for calling the TestKylinCubeOperator obj's underlying member method code with example usage: obj.test_execute(mock_hook) without return types