CsvLogRecordParser { String constructFieldName(String fileType, int column, String header) { return String.format("%s_%05d_%s", fileType, column, header); } CsvLogRecordParser(CsvLogRecordParserConfig csvLogRecordParserConfig); void parse(Reader fileReader, String fileType, LogRecordCollector collector);  }
@Test public void testConstructFieldName() { assertThat(parser.constructFieldName("type", 1, "field"), is("type_00001_field")); assertThat(parser.constructFieldName("type", 1234, "field"), is("type_01234_field")); assertThat(parser.constructFieldName("type", 123456, "field"), is("type_123456_field")); }