def METHOD_NAME(self, mock_request):
    mock_request.side_effect = self.request_side_effect
    pipeline = Pipeline()
    pipeline.add_node(component=self.eb, name="ErnieBot", inputs=["Query"])
    response_round_1 = pipeline.run("hello")
    self.assertEqual(response_round_1["result"], "1 messages received")
    self.assertEqual(
        response_round_1["history"],
        [{"role": "user", "content": "hello"}, {"role": "assistant", "content": "1 messages received"}],
    )
    response_round_2 = pipeline.run("hello again", params={"history": response_round_1["history"]})
    self.assertEqual(response_round_2["result"], "3 messages received")
    self.assertEqual(
        response_round_2["history"],
        [
            {"role": "user", "content": "hello"},
            {"role": "assistant", "content": "1 messages received"},
            {"role": "user", "content": "hello again"},
            {"role": "assistant", "content": "3 messages received"},
        ],
    )