initialize(eeUimaEngine, appCtx);
waitUntilInitialized();
// Check if the type system returned from the service contains
// expected types
CAS cas = eeUimaEngine.getCAS();
TypeSystem ts = cas.getTypeSystem();
// "example.EmailsAddress" type was 'contributed' by the Flow Controller
if ( ts.getType("example.EmailAddress") == null ) {
fail("Incomplete Type system. Expected Type 'example.EmailAddress' missing from the CAS type system");
} else if ( ts.getType("example.GovernmentOfficial") == null) {
fail("Incomplete Type system. Expected Type 'example.GovernmentOfficial' missing from the CAS type system");
} else if ( ts.getType("example.Name") == null) {
fail("Incomplete Type system. Expected Type 'example.Name' missing from the CAS type system");
} else if ( ts.getType("example.PersonTitle") == null) {
fail("Incomplete Type system. Expected Type 'example.PersonTitle' missing from the CAS type system");
} else if ( ts.getType("example.PersonTitleKind") == null) {
fail("Incomplete Type system. Expected Type 'example.PersonTitleKind' missing from the CAS type system");
} else if ( ts.getType("org.apache.uima.examples.tokenizer.Sentence") == null) {
fail("Incomplete Type system. Expected Type 'org.apache.uima.examples.tokenizer.Sentence' missing from the CAS type system");
} else if ( ts.getType("org.apache.uima.examples.tokenizer.Token") == null) {
fail("Incomplete Type system. Expected Type 'org.apache.uima.examples.tokenizer.Token' missing from the CAS type system");
}
} catch (ResourceInitializationException e) {
fail("Initialization Exception");