### Question:
PcapRecordReader extends RecordReader<LongWritable, ObjectWritable> { public long getPos() throws IOException { return baseStream.getPos(); } PcapRecordReader(PcapReader pcapReader, long start, long end, Seekable baseStream, DataInputStream stream, TaskAttemptContext context); @Override void initialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext); @Override void close(); @Override boolean nextKeyValue(); @Override ObjectWritable getCurrentValue(); @Override LongWritable getCurrentKey(); long getPos(); @Override float getProgress();  }### Answer:
@Test public void position() throws IOException { assertEquals(PcapReader.HEADER_SIZE, recordReader.getPos()); skipToEnd(); assertEquals(TEST_FILE.length(), recordReader.getPos()); }