### Question:
CodeGeneratorHelper { public void createSeLionPageDetailsFile() { String outputDir = new File(config.detailedTextOutputLocation).getAbsolutePath(); File outputFile = new File(outputDir + File.separator + "SeLionPageDetails.txt"); try { outputFile.getParentFile().mkdirs(); outputFile.createNewFile(); } catch (IOException e) { CodeGeneratorLoggerFactory.getLogger().debug(e); } try (BufferedWriter writer = new BufferedWriter(new FileWriter(outputFile))) { String prefix = new File(config.resourcesDir).getAbsolutePath(); for (File eachFile : allDataFiles) { String filePath = eachFile.getAbsolutePath(); writer.write(filePath.substring(prefix.length() + 1)); writer.newLine(); } } catch (IOException e) { CodeGeneratorLoggerFactory.getLogger().debug(e); } } protected  CodeGeneratorHelper(CodeGeneratorConfig config); void processFiles(); void displayProjectInformation(); void registerCustomElements(); void createSeLionPageDetailsFile();  }### Answer:
@Test public void testCreateSeLionPageDetailsFile() { CodeGeneratorConfig config = new CodeGeneratorConfig(); config.detailedTextOutputLocation = System.getProperty("java.io.tmpdir", "/tmp"); CodeGeneratorHelper helper = new CodeGeneratorHelper(config); helper.createSeLionPageDetailsFile(); String outputDir = new File(config.detailedTextOutputLocation).getAbsolutePath(); File outputFile = new File(outputDir + File.separator + "SeLionPageDetails.txt"); assertTrue(outputFile.exists()); outputFile.delete(); assertFalse(outputFile.exists()); }