### Question:
OscarAnnotator extends JCasAnnotator_ImplBase { public static AnalysisEngineDescription getAED() throws ResourceInitializationException { return createEngineDescription(OscarAnnotator.class); }  @Override void initialize(UimaContext context); @Override void process(JCas jCas); static AnalysisEngineDescription getAED(); static AnalysisEngine getAE(); static final List<NamedEntityType> RELEVANT_TYPES; }### Answer:
@Test public void test() throws Exception { JCas jCas = getTestCas("Synthesis of the brown dropwise Hyperbranched Macroligands via Michael Addition of Butyl or Ethyl Acrylate with HPEI. The synthetic procedure for partially EA- or BA-modified HPEI is exemplified for HPEI25K-EA0.79: 1.00 g of HPEI25K (Mn = 2.50 x 104, 23.3 mmol of amine groups) was dissolved in 5.00 mL of THF, and then 2.52 mL (23.3 mmol) of EA was added. The mixture was stirred at room temperature for 24 h and subsequently at 50 °C for another 24 h. 6 wt. % at 333 K."); runPipeline(jCas, OscarAnnotator.getAED()); Collection<Chemical> chemicals = select(jCas, Chemical.class); LOG.debug(To.string("matched chemicals", chemicals)); assertEquals(8, chemicals.size()); }
@Test public void testDihydrotestosterone() throws Exception { JCas jCas = getTestCas("Synthesis of 5 α-DHT is difficult to realise in laboratory."); runPipeline(jCas, OscarAnnotator.getAED()); Collection<Chemical> chemicals = select(jCas, Chemical.class); LOG.debug(To.string("matched chemicals", chemicals)); assertEquals(1, chemicals.size()); }