FileCollectorConfig extends AbstractCollectorConfig { public String getFileName() { return fileName; } FileCollectorConfig(FileQueryDAO fileQueryDAO, String fileName,
            Class<P> clazz); FileCollectorConfig<P> addQueueSize(int queueSize); FileCollectorConfig<P> addExceptionHandler(
            CollectorExceptionHandler exceptionHandler); FileCollectorConfig<P> addValidator(Validator validator); FileCollectorConfig<P> addValidationErrorHandler(
            ValidationErrorHandler validationErrorHandler); FileCollectorConfig<P> addExecuteByConstructor(
            boolean executeByConstructor); FileQueryDAO getFileQueryDAO(); void setFileQueryDAO(FileQueryDAO fileQueryDAO); String getFileName(); void setFileName(String fileName); Class<P> getClazz(); void setClazz(Class<P> clazz);  }
@Test public void testGetFileName001() { FileQueryDAO fileQueryDAO = new FileQueryDAO() { public <T> FileLineIterator<T> execute(String fileName, Class<T> clazz) { return null; } }; String fileName = "hoge"; Class<B000001Data> clazz = B000001Data.class; FileCollectorConfig<B000001Data> config = new FileCollectorConfig<B000001Data>(fileQueryDAO, fileName, clazz); String result = config.getFileName(); assertNotNull(result); assertEquals(fileName, result); }