@Test
public void testGetProgress() throws Exception {

  // Load RecordReader with multiple records. Set length of input split to 60 chars.
  GsonRecordReader multipleRecordReader = getRecordReader(60);
  // Assert RecordReader returns correct progress.
  assertThat(multipleRecordReader.nextKeyValue()).isTrue();
  assertThat(multipleRecordReader.getProgress()).isWithin(.01f).of(.58f);
  assertThat(multipleRecordReader.nextKeyValue()).isTrue();
  assertThat(multipleRecordReader.getProgress()).isWithin(.01f).of(1);
  assertThat(multipleRecordReader.nextKeyValue()).isFalse();
  assertThat(multipleRecordReader.getProgress()).isWithin(.01f).of(1);
  // Close RecordReader.
  multipleRecordReader.close();
}