*/
public void testJavaBinaryObjectInspector() throws Throwable {
BytesWritable bW = getInputBytesWritable();
//create JavaBinaryObjectInspector
JavaBinaryObjectInspector binInspector =
PrimitiveObjectInspectorFactory.javaByteArrayObjectInspector;
//convert BytesWritable to byte][
byte[] outBARef = binInspector.set(null, bW);
assertTrue("compare input and output BAs",
Arrays.equals(inpBArray, outBARef));
}