CorcRecordReader implements RecordReader<NullWritable, Corc> { @Override public Corc createValue() { return new Corc(typeInfo, factory); } CorcRecordReader(StructTypeInfo typeInfo, RecordReader<NullWritable, OrcStruct> reader, ConverterFactory factory,
      Filter filter); @Override boolean next(NullWritable key, Corc value); @Override NullWritable createKey(); @Override Corc createValue(); @Override long getPos(); @Override void close(); @Override float getProgress();  }
@Test public void readerCreateValue() { @SuppressWarnings("unchecked") RecordReader<NullWritable, OrcStruct> recordReader = mock(RecordReader.class); CorcRecordReader reader = new CorcRecordReader(typeInfo, recordReader, factory, Filter.ACCEPT); Corc corc = reader.createValue(); verify(recordReader, never()).createValue(); assertThat(corc.getInspector().getTypeName(), is("struct<a:string>")); Object create = ((SettableStructObjectInspector) OrcStruct.createObjectInspector(typeInfo)).create(); assertThat(corc.getOrcStruct(), is(create)); }