BaleenAnnotator extends JCasAnnotator_ImplBase { protected UimaMonitor getMonitor() { return monitor; }  @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 testGetMonitor() throws ResourceInitializationException { FakeBaleenAnnotator annotator = new FakeBaleenAnnotator(); annotator.initialize(context); assertNotNull(annotator.getMonitor()); assertEquals(PIPELINE_NAME, annotator.getMonitor().getPipelineName()); }