@Test
public void testCsvFileParsing() throws IOException, CsvParseException {

  try (InputStream resourceAsStream = CsvTest.class.getResourceAsStream("/test.csv")) {
    int nr = Csv.read(new InputStreamReader(resourceAsStream, StandardCharsets.UTF_8),
            new Csv.CsvMapHandler<Integer>() {
      private int i = 0;
      @Override
      public void row(final Map<String, String> row) {
        LOG.debug("Row {}", row);
        i++;
      }
      @Override
      public Integer eof() {
        return i;
      }
    });
    Assert.assertEquals(3, nr);
  }
}