Corc implements Writable { @Override public void write(DataOutput out) throws IOException { throw new UnsupportedOperationException(Corc.class.getName() + " cannot be used for writing."); } Corc(StructTypeInfo typeInfo, ConverterFactory factory); Object get(String fieldName); Object getWritable(String fieldName); void set(String fieldName, Object value); RecordIdentifier getRecordIdentifier(); void setRecordIdentifier(RecordIdentifier recordIdentifier); OrcStruct getOrcStruct(); SettableStructObjectInspector getInspector(); Object serialize(); @Override void write(DataOutput out); @Override void readFields(DataInput in);  }
@Test(expected = UnsupportedOperationException.class) public void write() throws IOException { corc.write(null); }