### Question:
PxfInputFormat extends FileInputFormat { @Override public RecordReader getRecordReader(InputSplit split, JobConf conf, Reporter reporter) { throw new UnsupportedOperationException("PxfInputFormat should not be used for reading data, but only for obtaining the splits of a file"); }  @Override RecordReader getRecordReader(InputSplit split,
                                        JobConf conf,
                                        Reporter reporter); @Override FileStatus[] listStatus(JobConf job);  }### Answer:
@Test public void testGetRecordReader() throws IOException { thrown.expect(UnsupportedOperationException.class); thrown.expectMessage("PxfInputFormat should not be used for reading data, but only for obtaining the splits of a file"); new PxfInputFormat().getRecordReader(null, null, null); }