response = requests.Response()
        response.status_code = 200
        response._content = json.dumps(BaseSerialization.serialize("remote-call"))
        mock_requests.post.return_value = response
        result = fake_method_with_params("fake-dag", task_id=123)
        assert result == "remote-call"
        expected_data = json.dumps(
            {
                "jsonrpc": "2.0",
                "method": "tests.api_internal.test_internal_api_call.fake_method_with_params",
                "params": json.dumps(
                    BaseSerialization.serialize(
                        {
                            "dag_id": "fake-dag",
                            "task_id": 123,
                        }
                    )
                ),
            }
        )
        mock_requests.post.assert_called_once_with(
            url="http://localhost:8888/internal_api/v1/rpcapi",
            data=expected_data,
            headers={"Content-Type": "application/json"},
        )