def METHOD_NAME(self, test_assets: bool = True) -> None:
    """Test the connection for the SparkAzureBlobStorageDatasource.
    Args:
        test_assets: If assets have been passed to the SparkAzureBlobStorageDatasource, whether to test them as well.
    Raises:
        TestConnectionError: If the connection test fails.
    """
    try:
        _ = self._get_azure_client()
    except Exception as e:
        raise TestConnectionError(
            "Attempt to connect to datasource failed with the following error message: "
            f"{e!s}"
        ) from e
    if self.assets and test_assets:
        for asset in self.assets:
            asset.METHOD_NAME()