code: def test_build_get_hook(self):
      self.set_conn()
      connection_url_mapping = {
          # id, expected
          "default_port": "http://host",
          "default_protocol": "http://host",
          "port_set": "http://host:1234",
          "schema_set": "zzz://host",
          "dont_override_schema": "http://host",
      }
  
      for conn_id, expected in connection_url_mapping.items():
          hook = LivyAsyncHook(livy_conn_id=conn_id)
          response_conn: Connection = hook.get_connection(
              conn_id=conn_id
          )
          assert isinstance(response_conn, Connection)
          assert hook._generate_base_url(response_conn) == expected
  
imports: from __future__ import annotations
  import json
  from unittest import mock
  from unittest.mock import AsyncMock, MagicMock, patch
  import multidict
  import pytest
  from aiohttp import ClientResponseError, RequestInfo
  from requests.exceptions import RequestException
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.apache.livy.hooks.livy import BatchState, LivyAsyncHook, LivyHook
  from airflow.utils import db
  from tests.test_utils.db import clear_db_connections
label_desc: Use image node_id 2 for calling the TestLivyAsyncHook obj's underlying member method code with example usage: obj.test_build_get_hook() without return types