    @Test
    public void testServiceDispatcher() throws IOException, TemplateException {

        AnalysisResult result = buildResult();

        List<AnalysisResult> results = new LinkedList<>();
        results.add(result);

        FileGenerator fileGenerator = new FileGenerator(results, ".");
        StringWriter writer = new StringWriter();
        fileGenerator.generateServiceDispatcher(writer);
        Assert.assertEquals(readExpectedFile("ServiceDispatcherExpected.java"), writer.toString());

        //fileGenerator.generateServiceDispatcher(new OutputStreamWriter(System.out));
    }