RecordWritable implements Writable { @Override public String toString() { return CsvRecordWriter.toString(attributeValues) + "\t" + CsvRecordWriter.toString(annotationValues); } RecordWritable();  RecordWritable(Object[] attributeValues, Object[] annotationValues); Object[] getAnnotationValues(); Object[] getAttributeValues(); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override String toString();  }
@Test public void testToString() throws Exception { RecordWritable recordWritable = new RecordWritable(inputValues, new Object[]{OverlappingRecordTransform.EXCLUSION_REASON_OVERLAPPING}); assertEquals("" + "Benguela\t" + "76432\t" + "-2.14\t" + "2011-08-19 07:55:06\t" + "NaN\t" + "1\t" + "0.5\t" + "3.4\t" + "OVERLAPPING", recordWritable.toString()); }