docstr: two conn_type normalizations are applied: replace - with _ and postgresql with postgres
code: def test_from_json_conn_type(self, val, expected):
      """two conn_type normalizations are applied: replace - with _ and postgresql with postgres"""
      assert Connection.from_json(val).conn_type == expected
  
imports: from __future__ import annotations
  import json
  import os
  import re
  from collections import namedtuple
  from unittest import mock
  import pytest
  import sqlalchemy
  from cryptography.fernet import Fernet
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
  from airflow.models import Connection, crypto
  from airflow.providers.sqlite.hooks.sqlite import SqliteHook
  from airflow.providers_manager import HookInfo
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 11 for calling the TestConnection obj's underlying member method code with example usage: obj.test_from_json_conn_type(val, expected) without return types