code: def test_encrypted_provided(
      self,
      mock_graph_database,
      conn_extra,
      should_provide_encrypted,
      expected_encrypted,
  ):
      connection = Connection(
          conn_type="neo4j",
          login="login",
          password="password",
          host="host",
          schema="schema",
          extra=conn_extra,
      )
      with mock.patch.dict(
          "os.environ", AIRFLOW_CONN_NEO4J_DEFAULT=connection.get_uri()
      ):
          neo4j_hook = Neo4jHook()
          with neo4j_hook.get_conn():
              if should_provide_encrypted:
                  assert (
                      "encrypted"
                      in mock_graph_database.call_args.kwargs
                  )
                  assert (
                      mock_graph_database.call_args.kwargs["encrypted"]
                      == expected_encrypted
                  )
              else:
                  assert (
                      "encrypted"
                      not in mock_graph_database.call_args.kwargs
                  )
  
file_path: airflow/tests/providers/neo4j/hooks/test_neo4j.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.models import Connection
  from airflow.providers.neo4j.hooks.neo4j import Neo4jHook
label_desc: Use image node_id 4 for calling the TestNeo4jHookConn obj's underlying member method code with example usage: obj.test_encrypted_provided(mock_graph_database, conn_extra, should_provide_encrypted, expected_encrypted) without return types