@Test
 public void testHasNextRecordForEmptyFile() throws Exception {
   flatFileRecordReader.close();
   flatFileRecordReader = new FlatFileRecordReader(emptyDataSource);
   flatFileRecordReader.open();
   assertThat(flatFileRecordReader.hasNextRecord()).isFalse();
 }
 @Before
 public void setUp() throws Exception {
   dataSource = new File(getFileUri("/tweets.csv"));
   emptyDataSource = new File(getFileUri("/empty-file.txt"));
   nonExistingDataSource = new File("./foo.bar");
   flatFileRecordReader = new FlatFileRecordReader(dataSource);
   flatFileRecordReader.open();
 }