protected void assertSerializable(Tuple tuple, boolean debug) throws IOException {
assertSerializable(tuple, null, debug);
}
protected void assertSerializable(Tuple tuple, Tuple toReuse, boolean debug) throws IOException {
HadoopSerialization hadoopSer = new HadoopSerialization(getConf());
SimpleTupleSerializer ser = new SimpleTupleSerializer(hadoopSer);
SimpleTupleDeserializer deser = new SimpleTupleDeserializer(tuple.getSchema(), hadoopSer, getConf());
DataOutputBuffer output = new DataOutputBuffer();
ser.open(output);