BaleenAnnotator extends JCasAnnotator_ImplBase { @Override public void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }  @Override void initialize(UimaContext context); void doInitialize(UimaContext aContext); @Override void process(JCas aJCas); @Override void destroy(); abstract AnalysisEngineAction getAction(); static final String KEY_HISTORY; }
@Test public void testDestroy() throws ResourceInitializationException { FakeBaleenAnnotator annotator = new FakeBaleenAnnotator(); annotator.initialize(context); annotator.destroy(); assertTrue(annotator.destroyed); }