docstr: Testing mock JWT bearer authentication to Salesforce. Users should provide consumer key and private
  key (or path to a private key) in the Connection. Providing a client ID, Salesforce API version, proxy
  mapping, and domain are optional. Connection params not provided or set as empty strings should be
  converted to `None`.
docstr_tok: ["Testing","mock","JWT","bearer","authentication","to","Salesforce",".","Users","should","provide","consumer","key","and","private","key","(","or","path","to","a","private","key",")","in","the","Connection",".","Providing","a","client","ID",",","Salesforce","API","version",",","proxy","mapping",",","and","domain","are","optional",".","Connection","params","not","provided","or","set","as","empty","strings","should","be","converted","to","`","None","`","."]
code: def test_get_conn_jwt_auth(self, mock_salesforce):
      """
      Testing mock JWT bearer authentication to Salesforce. Users should provide consumer key and private
      key (or path to a private key) in the Connection. Providing a client ID, Salesforce API version, proxy
      mapping, and domain are optional. Connection params not provided or set as empty strings should be
      converted to `None`.
      """
  
      jwt_auth_conn = Connection(
          conn_id="jwt_auth_conn",
          conn_type="salesforce",
          login=None,
          password=None,
          extra="""
              {
                  "client_id": "my_client3",
                  "consumer_key": "consumer_key",
                  "domain": "login",
                  "private_key": "private_key",
                  "version": "34.0"
              }
              """,
      )
      TestSalesforceHook._insert_conn_db_entry(
          jwt_auth_conn.conn_id, jwt_auth_conn
      )
  
      self.salesforce_hook = SalesforceHook(
          salesforce_conn_id="jwt_auth_conn"
      )
      self.salesforce_hook.get_conn()
  
      extras = jwt_auth_conn.extra_dejson
      mock_salesforce.assert_called_once_with(
          username=jwt_auth_conn.login,
          password=jwt_auth_conn.password,
          security_token=None,
          domain=extras["domain"],
          session_id=None,
          instance=None,
          instance_url=None,
          organizationId=None,
          version=extras["version"],
          proxies=None,
          session=None,
          client_id=extras["client_id"],
          consumer_key=extras["consumer_key"],
          privatekey_file=None,
          privatekey=extras["private_key"],
      )
  
imports: from __future__ import annotations
  import os
  from unittest import mock
  from unittest.mock import Mock, patch
  import numpy
  import pandas
  import pytest
  from requests import Session
  from simple_salesforce import Salesforce, api
  from airflow.models.connection import Connection
  from airflow.providers.salesforce.hooks.salesforce import SalesforceHook
  from airflow.utils.session import create_session
label_desc: Use image node_id 6 for calling the TestSalesforceHook obj's underlying member method code with example usage: obj.test_get_conn_jwt_auth(mock_salesforce) without return types