response = requests.Response()
        response.status_code = 200
        response._content = json.dumps(BaseSerialization.serialize("remote-call"))
        mock_requests.post.return_value = response
        result = TestInternalApiCall.fake_method()
        assert result == "remote-call"
        expected_data = json.dumps(
            {
                "jsonrpc": "2.0",
                "method": "tests.api_internal.test_internal_api_call.TestInternalApiCall.fake_method",
                "params": json.dumps(BaseSerialization.serialize({})),
            }
        )
        mock_requests.post.assert_called_once_with(
            url="http://localhost:8888/internal_api/v1/rpcapi",
            data=expected_data,
            headers={"Content-Type": "application/json"},
        )
    @conf_vars(
        {
            ("core", "database_access_isolation"): "true",
            ("core", "internal_api_url"): "http://localhost:8888",
        }
    )
    @mock.patch("airflow.api_internal.internal_api_call.requests")
    def test_remote_call_with_params(self, mock_requests):