* Test the mapToSofaID method in UimaContext.
*
*/
public void testGetUimaContextMapToSofaID() throws Exception {
try {
SofaID sofaid1 = delegateAE.getUimaContext().mapToSofaID("EnglishDocument");
Assert.assertEquals("SourceDocument", sofaid1.getSofaID());
SofaID sofaid2 = delegateAE.getUimaContext().mapToSofaID("GermanDocument");
Assert.assertEquals("OutputTranslator1", sofaid2.getSofaID());
SofaID sofaid3 = flowController.getUimaContext().mapToSofaID("OriginalDocument");
Assert.assertEquals("SourceDocument", sofaid3.getSofaID());
// now try the second aggregate (With the sofa-unaware mapping)
sofaid1 = delegateAE2.getUimaContext().mapToSofaID(CAS.NAME_DEFAULT_TEXT_SOFA);
Assert.assertEquals("SourceDocument", sofaid1.getSofaID());
sofaid2 = delegateAE2.getUimaContext().mapToSofaID("GermanDocument");