@Test
public void testGeneratorWithTwoPlugins() {

    pluginDocTree.addPlugin("plugin2", pluginDoc2);
    docGenerator.generateDoc(pluginDocTree);
    verify(writerMock, times(2)).writeDocFile(any(String.class), any(String.class));
}