AbstractFileLineIterator implements
                                              FileLineIterator<T> { protected Field[] getFields() { return fields; } AbstractFileLineIterator(String fileName, Class<T> clazz,
            Map<String, ColumnParser> columnParserMap); @Override boolean hasNext(); @Override T next(); @Override void remove(); @Override void closeFile(); @Override List<String> getHeader(); @Override List<String> getTrailer(); @Override void skip(int skipLines); int getCurrentLineCount();  }
@Test public void testGetFields01() throws Exception { URL url = this.getClass().getResource( "AbstractFileLineIterator_skip01.txt"); String fileName = url.getPath(); Map<String, ColumnParser> columnParserMap = new HashMap<String, ColumnParser>(); columnParserMap.put("java.lang.String", new NullColumnParser()); @SuppressWarnings("rawtypes") AbstractFileLineIteratorImpl02<AbstractFileLineIterator_Stub01> fileLineIterator = new AbstractFileLineIteratorImpl02<AbstractFileLineIterator_Stub01>( fileName, AbstractFileLineIterator_Stub01.class, columnParserMap); Field[] fields = new Field[] {}; ReflectionTestUtils.setField(fileLineIterator, "fields", fields); Field[] result = fileLineIterator.getFields(); assertSame(fields, result); }