### Question:
BSPAnalysisEngineExecutor { public void executeAE(String aePath, String collectionPath, String outputFilePath, Integer casPoolSize) throws Exception { HamaConfiguration conf = new HamaConfiguration(); conf.set("uima.ae.path", aePath); conf.set("output.file", outputFilePath); conf.set("cas.pool.size", String.valueOf(casPoolSize)); conf.set("collection.path", collectionPath); BSPJob job = new BSPJob(conf); job.setBspClass(BasicAEProcessingBSPJob.class); job.setJarByClass(BasicAEProcessingBSPJob.class); job.setJobName("BSP based UIMA AE executor"); job.setNumBspTask(4); job.setOutputPath(new Path("/tmp")); job.waitForCompletion(true); }  void executeAE(String aePath, String collectionPath, String outputFilePath, Integer casPoolSize);  }### Answer:
@Test public void simpleTest() throws Exception { BSPAnalysisEngineExecutor bspAnalysisEngineExecutor = new BSPAnalysisEngineExecutor(); bspAnalysisEngineExecutor.executeAE("src/test/resources/uima/SampleAE.xml", "src/test/resources/data/", "target/analysis-results.txt", 3); }