code: def test_azure_directory_connection(
      self, mocked_client_secret_credential, mocked_blob_service_client
  ):
      mocked_client_secret_credential.return_value = "spam-egg"
      WasbHook(wasb_conn_id=self.ad_conn_id).get_conn()
      mocked_client_secret_credential.assert_called_once_with(
          tenant_id="token",
          client_id="appID",
          client_secret="appsecret",
          proxies=self.client_secret_auth_config["proxies"],
          connection_verify=self.client_secret_auth_config[
              "connection_verify"
          ],
          authority=self.client_secret_auth_config["authority"],
      )
      mocked_blob_service_client.assert_called_once_with(
          account_url="https://appID.blob.core.windows.net/",
          credential="spam-egg",
          tenant_id="token",
          proxies=self.proxies,
      )
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from azure.core.exceptions import ResourceNotFoundError
  from azure.storage.blob import BlobServiceClient
  from azure.storage.blob._models import BlobProperties
  from airflow.exceptions import AirflowException
  from airflow.models import Connection
  from airflow.providers.microsoft.azure.hooks.wasb import WasbHook
label_desc: Use image node_id 7 for calling the TestWasbHook obj's underlying member method code with example usage: obj.test_azure_directory_connection(mocked_client_secret_credential, mocked_blob_service_client) without return types