CsvMapping { public <TProperty> void mapProperty(int columnIndex, Type targetType, BiConsumer<TEntity, TProperty> setter) { ITypeConverter<TProperty> converter = typeConverterProvider.resolve(targetType); mapProperty(columnIndex, targetType, setter, converter); } 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 testMapProperty() { IObjectCreator<SampleEntity> objectCreator = () -> new SampleEntity(); CsvMapping<SampleEntity> csvMapping = new SampleEntityMapping(objectCreator); CsvMappingResult<SampleEntity> result = csvMapping.map(new String[] {"1"}); Assert.assertEquals(null, result.getError()); Assert.assertEquals(1, result.getResult().A); }