code: def test_should_propagate_exceptions(self):
      decorator = format_parameters({"param_a": format_datetime})
      endpoint = mock.MagicMock()
      decorated_endpoint = decorator(endpoint)
      with pytest.raises(BadRequest):
          decorated_endpoint(param_a="XXXXX")
  
imports: from __future__ import annotations
  from unittest import mock
  import pendulum
  import pytest
  from airflow.api_connexion.exceptions import BadRequest
  from airflow.api_connexion.parameters import check_limit, format_datetime, format_parameters, validate_istimezone
  from airflow.utils import timezone
  from tests.test_utils.config import conf_vars
label_desc: Use image node_id 2 for calling the TestFormatParameters obj's underlying member method code with example usage: obj.test_should_propagate_exceptions() without return types