sofamappings[3].setAggregateSofaName("OutputTranslator2");
desc1.setSofaMappings(sofamappings);
// instantiate AE
AggregateAnalysisEngine_impl aggregateAE = new AggregateAnalysisEngine_impl();
aggregateAE.initialize(desc1, additionalParams);
// get the first delegate AE
AnalysisEngine delegateAE1 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
.getComponentAnalysisEngines().get("Translator1");
Assert.assertEquals(2, delegateAE1.getUimaContext().getSofaMappings().length);
Assert.assertEquals("SourceDocument", delegateAE1.getUimaContext().mapToSofaID(
"EnglishDocument").getSofaID());
// get the second delegate AE
AnalysisEngine delegateAE2 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
.getComponentAnalysisEngines().get("Translator2");
Assert.assertEquals(2, delegateAE2.getUimaContext().getSofaMappings().length);
Assert.assertEquals("SourceDocument", delegateAE2.getUimaContext().mapToSofaID(
"EnglishDocument").getSofaID());