@Test(expected = CsvParseException.class)
public void testCsvFileParsingBad() throws IOException, CsvParseException {

  try (InputStream resourceAsStream = CsvTest.class.getResourceAsStream("/test_bad.csv")) {
    Csv.read(new InputStreamReader(resourceAsStream, StandardCharsets.UTF_8),
            new Csv.CsvMapHandler<Void>() {
      @Override
      public void row(final Map<String, String> row) {
        LOG.debug("Row {}", row);
      }
      @Override
      public Void eof() {
        return null;
      }
    });
  }
}