def test_serialize_through_message(self):
        s1 = StatsEntry(self.stats, "test", "GET")
        s1.log(10, 0)
        s1.log(20, 0)
        s1.log(40, 0)
        u1 = StatsEntry.unserialize(s1.serialize())
        
        data = Message.unserialize(Message("dummy", s1.serialize(), "none").serialize()).data
        u1 = StatsEntry.unserialize(data)
        
        self.assertEqual(20, u1.median_response_time)
Serialize a RequestStats instance, then serialize it through a Message, 
dataset/ETHPy150Open locustio/locust/locust/test/test_stats.py/TestRequestStats.test_serialize_through_message