### Question:
FileIterator implements RelationalInput { @Override public int numberOfColumns() { return numberOfColumns; } FileIterator(String relationName, Reader reader, ConfigurationSettingFileInput setting); @Override boolean hasNext(); @Override List<String> next(); @Override void close(); @Override int numberOfColumns(); @Override String relationName(); @Override List<String> columnNames(); int getNumberOfSkippedDifferingLines(); static final boolean DEFAULT_HAS_HEADER; static final boolean DEFAULT_SKIP_DIFFERING_LINES; static final String DEFAULT_NULL_VALUE; }### Answer:
@Test public void testNumberOfColumns() throws InputIterationException, InputGenerationException { CsvFileOneLineFixture fixtureSeparator = new CsvFileOneLineFixture(';'); FileIterator fileIterator = fixtureSeparator.getTestData(); assertEquals(fixture.getExpectedNumberOfColumns(), fileIterator.numberOfColumns()); }