assertTrue(CAS.NAME_DEFAULT_SOFA.equals(v1cas.getSofa().getSofaID()));
assertTrue(v1cas.getDocumentText().equals("some text for the default text sofa."));
}
public void testDuplicateNsPrefixes() throws Exception {
TypeSystemDescription ts = new TypeSystemDescription_impl();
ts.addType("org.bar.foo.Foo", "", "uima.tcas.Annotation");
ts.addType("org.baz.foo.Foo", "", "uima.tcas.Annotation");
CAS cas = CasCreationUtils.createCas(ts, null, null);
cas.setDocumentText("Foo");
Type t1 = cas.getTypeSystem().getType("org.bar.foo.Foo");
Type t2 = cas.getTypeSystem().getType("org.baz.foo.Foo");
AnnotationFS a1 = cas.createAnnotation(t1,0,3);