//Convert byte array to HCatRecord using isd, convert hcatrecord back to byte array
//using osd, compare the two arrays
HCatRecord record = isd.convertToHCatRecord(null, bytesWritable);
HCatOutputStorageDriver osd = new RCFileOutputDriver();
osd.setSchema(jc, schema);
osd.initialize(jc, new Properties());
BytesRefArrayWritable bytesWritableOutput = (BytesRefArrayWritable) osd.convertValue(record);
assertTrue(bytesWritableOutput.compareTo(bytesWritable) == 0);
}