title: mockito and unit test for a csv reader
body: <p>Does it make sense to mock in unit test of a csv reader where we want to read the csv and put them into POJOs and make some queries? (specifically I mean mocking file read). </p>
  
  <p>Let's assume the following example:</p>
  
  <pre><code> ICsvBeanReader beanReader = null;
      beanReader = new CsvBeanReader(new FileReader(csvFileName),
              CsvPreference.STANDARD_PREFERENCE);
      String[] header = beanReader.getHeader(true);
      Book bookBean = null;
      while ((bookBean = beanReader.read(Book.class, header,
           processors))!= null) {
       books.add(bookBean);
      }
  </code></pre>
  
  <p>Thank you in advance.</p>