### Question:
AbstractVCatRenderer implements IVCatRenderer<W> { @Override public RenderedFileInfo render(final AbstractAllParams<W> all) throws VCatException { final File resultFile; OutputFormat outputFormat = all.getGraphviz().getOutputFormat(); if (outputFormat == OutputFormat.GraphvizRaw) { resultFile = createGraphFile(all); } else if (all.getVCat().getLinks() != Links.None && outputFormat.hasImageMapOutputFormat()) { final OutputFormat imageFormat = outputFormat; outputFormat = imageFormat.getImageMapOutputFormat(); all.getGraphviz().setOutputFormat(outputFormat); resultFile = createImagemapHtmlFile(all, imageFormat); } else { resultFile = createRenderedFile(all); } return new RenderedFileInfo(resultFile, outputFormat.getMimeType()); }  @Override RenderedFileInfo render(final AbstractAllParams<W> all);  }### Answer:
@Test public void testRender() throws VCatException { TestAllParams params = new TestAllParams(); underTest.render(params); assertEquals(1, underTest.getCreatedGraphFiles().size()); assertEquals(0, underTest.getCreatedImagemapHtmlFiles().size()); assertEquals(1, underTest.getRenderedFileFromGraphFiles().size()); }
@Test public void testRenderLinks() throws VCatException { TestAllParams params = new TestAllParams(); params.getGraphviz().setOutputFormat(OutputFormat.SVG); params.getVCat().setLinks(Links.Wiki); underTest.render(params); assertEquals(1, underTest.getCreatedGraphFiles().size()); assertEquals(0, underTest.getCreatedImagemapHtmlFiles().size()); assertEquals(1, underTest.getRenderedFileFromGraphFiles().size()); }
@Test public void testRenderLinksImageMap() throws VCatException { TestAllParams params = new TestAllParams(); params.getGraphviz().setOutputFormat(OutputFormat.PNG); params.getVCat().setLinks(Links.Wiki); underTest.render(params); assertEquals(0, underTest.getCreatedGraphFiles().size()); assertEquals(1, underTest.getCreatedImagemapHtmlFiles().size()); assertEquals(0, underTest.getRenderedFileFromGraphFiles().size()); }
@Test public void testRenderRaw() throws VCatException { TestAllParams params = new TestAllParams(); params.getGraphviz().setOutputFormat(OutputFormat.GraphvizRaw); underTest.render(params); assertEquals(1, underTest.getCreatedGraphFiles().size()); assertEquals(0, underTest.getCreatedImagemapHtmlFiles().size()); assertEquals(0, underTest.getRenderedFileFromGraphFiles().size()); }