def METHOD_NAME(self):
    msg = unittest_pb2.NestedTestAllTypes()
    int32_array = msg.payload.repeated_int32
    msg.payload.ClearField("repeated_int32")
    int32_array.append(123)
    self.assertEqual(0, msg.payload.ByteSize())