### Question:
AbbreviationsExpanderAnnotator extends JCasAnnotator_ImplBase { @Override public void process(JCas jCas) throws AnalysisEngineProcessException { expandAbbreviations(jCas); }  @Override void process(JCas jCas); static void expandAbbreviations(JCas jCas);  }### Answer:
@Test public void testAbrevs() throws Exception { JCas jCas = getTestCas(SAMPLE_TXT); PipelineBuilder p = new JcasPipelineBuilder(jCas); p.add(AbbreviationsExpanderAnnotatorTest.class); p.add(AbbreviationsAnnotator.class); p.add(AbbreviationsExpanderAnnotator.class); p.process(); Collection<Abbreviation> abrevs = select(jCas, Abbreviation.class); for (Abbreviation abrev : abrevs) { LOG.debug(To.string(abrev)); } assertEquals(15, abrevs.size()); List<Protein> prots = newArrayList(select(jCas, Protein.class)); for (Protein prot : prots) LOG.debug(To.string(prot)); assertEquals(6, prots.size()); }