BaleenContentExtractor extends Resource_ImplBase implements ContentExtractor { protected UimaSupport getSupport() { return support; }  @Override final boolean initialize(ResourceSpecifier specifier, Map<String, Object> additionalParams); abstract void doInitialize(UimaContext context, Map<String, Object> params); @Override final void processStream(InputStream stream, String source, JCas jCas); @Override final void destroy(); static final String KEY_HISTORY; }
@Test public void testGetSupport() throws ResourceInitializationException { FakeBaleenContentExtractor annotator = new FakeBaleenContentExtractor(); annotator.initialize( new CustomResourceSpecifier_impl(), ImmutableMap.of(Resource.PARAM_UIMA_CONTEXT, context)); assertNotNull(annotator.getSupport()); assertEquals(PIPELINE_NAME, annotator.getSupport().getPipelineName()); }