code: def setup_method(self):
      self.cur = MagicMock(rowcount=0)
      self.conn = conn = MagicMock()
      self.conn.host = "host"
      self.conn.port = "1000"
      self.conn.conn_type = "druid"
      self.conn.extra_dejson = {"endpoint": "druid/v2/sql"}
      self.conn.cursor.return_value = self.cur
  
      class TestDruidDBApiHook(DruidDbApiHook):
          def get_conn(self):
              return conn
  
          def get_connection(self, conn_id):
              return conn
  
      self.db_hook = TestDruidDBApiHook
  
imports: from __future__ import annotations
  from unittest.mock import MagicMock, patch
  import pytest
  import requests
  from airflow.exceptions import AirflowException
  from airflow.providers.apache.druid.hooks.druid import DruidDbApiHook, DruidHook, IngestionType
label_desc: Use image node_id 1 for calling the TestDruidDbApiHook obj's underlying member method code with example usage: obj.setup_method() and returns: conn, conn