### Question:
FileGenerator { void generateIndicatorImplementor(AnalysisResult result, Writer output) throws IOException, TemplateException { configuration.getTemplate("IndicatorImplementor.ftl").process(result, output); } FileGenerator(List<AnalysisResult> results, String outputPath); void generate();  }### Answer:
@Test public void testGenerateIndicatorImplementor() throws IOException, TemplateException { AnalysisResult result = buildResult(); List<AnalysisResult> results = new LinkedList<>(); results.add(result); FileGenerator fileGenerator = new FileGenerator(results, "."); StringWriter writer = new StringWriter(); fileGenerator.generateIndicatorImplementor(result, writer); Assert.assertEquals(readExpectedFile("IndicatorImplementorExpected.java"), writer.toString()); }