### Question:
LuceneCASIndexer extends LuceneDocumentAE { public void process(CAS cas) throws AnalysisEngineProcessException { try { indexWriter.addDocument(createDocument(cas)); } catch (IOException e) { logger.error("processCas(CAS)", e); throw new AnalysisEngineProcessException(e); } }  @Override void initialize(UimaContext aContext); void process(CAS cas); @Override void destroy(); void optimizeIndex();  }### Answer:
@Test public void testIndexOneDocument() throws ResourceInitializationException, AnalysisEngineProcessException { CAS cas = analysisEngine.newCAS(); cas.setDocumentText("test document text"); analysisEngine.process(cas); }