CorcRecordReader implements RecordReader<NullWritable, Corc> { @Override public void close() throws IOException { reader.close(); } 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 readerClose() throws IOException { @SuppressWarnings("unchecked") RecordReader<NullWritable, OrcStruct> recordReader = mock(RecordReader.class); CorcRecordReader reader = new CorcRecordReader(typeInfo, recordReader, factory, Filter.ACCEPT); reader.close(); verify(recordReader).close(); }