CsvMapping { @Override public String toString() { String csvPropertyMappingsString = csvPropertyMappings .stream() .map(e -> e.toString()) .collect(Collectors.joining(", ")); return "CsvMapping{" + "creator=" + creator + ", typeConverterProvider=" + typeConverterProvider + ", csvPropertyMappings=[" + csvPropertyMappingsString + "]" + '}'; } CsvMapping(IObjectCreator creator);  CsvMapping(IObjectCreator creator, ITypeConverterProvider typeConverterProvider); void mapProperty(int columnIndex, Type targetType, BiConsumer<TEntity, TProperty> setter); void mapProperty(int columnIndex, Type targetType, BiConsumer<TEntity, TProperty> setter, ITypeConverter<TProperty> converter); CsvMappingResult<TEntity> map(String[] values); @Override String toString();  }
@Test public void ToString_NoThrow() { IObjectCreator<SampleEntity> objectCreator = () -> new SampleEntity(); CsvMapping<SampleEntity> csvMapping = new SampleEntityMapping(objectCreator); JUnitUtils.assertDoesNotThrow(() -> csvMapping.toString()); }