@Test
public void testWriteDocFile() throws IOException {

    DocFileWriter docFileWriter = new DocFileWriter(errorLogger, outputDirName);
    assertThat(outputDir.exists(), is(false));
    docFileWriter.writeDocFile("MyPlugin", "mydoc\nand so on");
    assertThat(outputDir.exists(), is(true));
    File file = new File(this.outputDirName, "MyPlugin.adoc");
    assertThat(file.exists(), is(true));
    List<String> lines = Files.readLines(file, Charset.defaultCharset());
    assertThat(lines.size(), is(2));
    assertThat(lines.get(0), is("mydoc"));
    assertThat(lines.get(1), is("and so on"));
}