Indeed, we only need to write a unit test for `WholeTextFileRecordReader`. It is not necessary to verify that  `wholeTextFile` can load files from HDFS. We are actually testing `newAPIHadoopFile` here. Maybe we can get some suggestions from others.