### Question:
Column implements WritableComparable<Column> { public TColumn toThrift() { return new TColumn(columnFamily == null ? null : ByteBuffer.wrap(columnFamily), columnQualifier == null ? null : ByteBuffer.wrap(columnQualifier), columnVisibility == null ? null : ByteBuffer.wrap(columnVisibility)); } Column();  Column(byte[] columnFamily, byte[] columnQualifier, byte[] columnVisibility);  Column(TColumn tcol); @Override int compareTo(Column that); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object that); boolean equals(Column that); @Override int hashCode(); byte[] getColumnFamily(); byte[] getColumnQualifier(); byte[] getColumnVisibility(); @Override String toString(); TColumn toThrift(); public byte[] columnFamily; public byte[] columnQualifier; public byte[] columnVisibility; }### Answer:
@Test public void testThriftRoundTrip() { for (Column c : col) { TColumn tc = c.toThrift(); assertEquals(c, new Column(tc)); } }