add test to ensure the optimized writeProduceRequest function behaves the same as the generic implementation
add test to ensure the optimized writeProduceRequest function behaves the same as the generic implementation

segmentio/kafka-go