### Question:
ComponentReferenceDocumentationBuilder { public boolean writeDocumentationToDirectory(final File directory) { if (!directory.exists()) { directory.mkdirs(); } return writeDocumentationToRepositoryFolder(new FileRepository(directory)); } ComponentReferenceDocumentationBuilder(final DescriptorProvider descriptorProvider); boolean writeDocumentationToDirectory(final File directory); boolean writeDocumentationToRepositoryFolder(final RepositoryFolder folder);  }### Answer:
@Test public void testGenerateDocsInTarget() throws Exception { final File directory = new File("target/component_reference_documentation"); if (directory.exists()) { FileUtils.deleteDirectory(directory); } final SimpleDescriptorProvider descriptorProvider = new SimpleDescriptorProvider(); descriptorProvider.addAnalyzerBeanDescriptor(Descriptors.ofAnalyzer(CharacterSetDistributionAnalyzer.class)); descriptorProvider.addAnalyzerBeanDescriptor(Descriptors.ofAnalyzer(ReferenceDataMatcherAnalyzer.class)); descriptorProvider.addTransformerBeanDescriptor(Descriptors.ofTransformer(ConcatenatorTransformer.class)); descriptorProvider.addTransformerBeanDescriptor(Descriptors.ofTransformer(TokenizerTransformer.class)); final ComponentReferenceDocumentationBuilder docBuilder = new ComponentReferenceDocumentationBuilder(descriptorProvider); final boolean success = docBuilder.writeDocumentationToDirectory(directory); assertTrue(success); assertTrue(new File(directory, "index.html").exists()); assertEquals(5, directory.list().length); }