### Question:
CodeGeneratorHelper { public void processFiles() { final CodeGenerator generator = new CodeGenerator(config.generatedSourcesDir); for (File dataFile : allDataFiles) { try { String folder = pathToFolder(dataFile); String domain = folder.replace(File.separator, "/"); folder = folder.replace(File.separator, "."); if (config.excludeDomains.contains(domain)) { logger.info("Excluded code generation for YAML file [" + dataFile.getName() + "] as the corresponding domain [" + domain + "] is available in excludeDomains list"); continue; } String relativePath = relativePath(folder); File extendedFile = extendedFileLoc(config.sourceDir, relativePath, dataFile); File baseFile = baseFileLoc(config.generatedSourcesDir, relativePath, dataFile); if (generateJavaCode(baseFile, dataFile, extendedFile)) { logger.info("Generating java file for YAML file [" + dataFile.getName() + "] in domain [" + domain + "]"); String tempPackage = config.basePackage; if (!folder.isEmpty()) { tempPackage += tempPackage.isEmpty() ? folder : "." + folder; } generator.generateNewCode(dataFile, relativePath, tempPackage, domain); } } catch (Exception e) { String errorMsg = " \n SeLion code generator failed when generating code for " + dataFile.getAbsolutePath() + "\n" + "Root Cause : \n" + e.toString(); throw new CodeGeneratorException(errorMsg, e); } } } protected  CodeGeneratorHelper(CodeGeneratorConfig config); void processFiles(); void displayProjectInformation(); void registerCustomElements(); void createSeLionPageDetailsFile();  }### Answer:
@Test public void testProcessFiles() throws Exception { CodeGeneratorConfig config = new CodeGeneratorConfig(); CodeGeneratorHelper helper = new CodeGeneratorHelper(config); helper.processFiles(); File generatedDir = new File(config.generatedSourcesDir); assertTrue(generatedDir.exists()); File packageOutputDir = new File(generatedDir.getAbsolutePath() + File.separator + config.basePackage.replace(".", File.separator)); String[] generatedFiles = { "sample/MyAppHomePage.java", "sample/NativeAppTestPage.java" }; for (String file : generatedFiles) { File f = new File(packageOutputDir.getAbsolutePath() + File.separator + file); assertTrue(f.exists()); f.delete(); } FileUtils.forceDelete(generatedDir); }