CpeDescription cpeDesc = UIMAFramework.getXMLParser().parseCpeDescription(
new XMLInputSource(JUnitExtension
.getFile("CollectionProcessingEngineImplTest/externalResourceTestCpe.xml")));
CollectionProcessingEngine cpe = UIMAFramework.produceCollectionProcessingEngine(cpeDesc, rm,
null);
CollectionReader colRdr = (CollectionReader) cpe.getCollectionReader();
assertNotNull(colRdr.getUimaContext().getResourceObject("TestFileResource"));
CasInitializer casIni = colRdr.getCasInitializer();
assertNotNull(casIni.getUimaContext().getResourceObject("TestFileLanguageResource",
new String[] { "en" }));
AnalysisEngine ae = (AnalysisEngine) cpe.getCasProcessors()[0];
assertNotNull(ae.getUimaContext().getResourceObject("TestResourceObject"));
assertNotNull(ae.getUimaContext().getResourceObject("TestLanguageResourceObject",