CsvParser implements ICsvParser<TEntity> { @Override public String toString() { return "CsvParser{" + "options=" + options + ", mapping=" + mapping + '}'; } CsvParser(CsvParserOptions options, CsvMapping<TEntity> mapping); @Override Stream<CsvMappingResult<TEntity>> parse(Stream<String> stream); Stream<CsvMappingResult<TEntity>> parse(Iterable<String> csvData); Stream<CsvMappingResult<TEntity>> readFromFile(Path path, Charset charset); Stream<CsvMappingResult<TEntity>> readFromString(String csvData, CsvReaderOptions options); @Override String toString();  }
@Test public void testParse_toString() { CsvParserOptions options = new CsvParserOptions(false, ","); PersonMapping mapping = new PersonMapping(() -> new Person()); CsvParser<Person> parser = new CsvParser<>(options, mapping); JUnitUtils.assertDoesNotThrow(() -> parser.toString()); }