### Question:
DocumentationWriterVelocityBased implements DocumentationWriter { @Override public void write(CodeDocumentation codeDoc) { try { Velocity.init(); VelocityContext context = new VelocityContext(); context.put("codeDoc", codeDoc); InputStreamReader templateReader = new InputStreamReader(DocumentationWriterVelocityBased.class.getResourceAsStream("/default-template.vm")); Writer writer = new PrintWriter(new File(destinationDir, "index.html")); boolean evaluated = Velocity.evaluate(context, writer, "jaxrsDoclet", templateReader); writer.close(); } catch (IOException e) { throw new RuntimeException("Unable to write JAX-RS documentation due to a " + e.getClass().getName() + " with message '" + e.getMessage() + "'", e); } } DocumentationWriterVelocityBased();  DocumentationWriterVelocityBased(String destinationDir, String templatePath); @Override void write(CodeDocumentation codeDoc);  }### Answer:
@Test public void contains_overview() throws IOException { String overview = "Hello World!"; CodeDocumentation codeDoc = new CodeDocumentation(overview); DocumentationWriterVelocityBased documentationWriter = new DocumentationWriterVelocityBased(SystemUtils.JAVA_IO_TMPDIR, null); documentationWriter.write(codeDoc); File apidoc = new File(SystemUtils.JAVA_IO_TMPDIR, "index.html"); String apidocContent = FileUtils.readFileToString(apidoc); System.out.println(apidocContent); assertTrue(apidocContent.contains(overview)); }