CAS srcCas = CasCreationUtils.createCas(typeSystem, new TypePriorities_impl(), indexes);
JCas jcas = srcCas.getJCas();
jcas.setDocumentText("1 2 3 4 5 6 7 8 9");
OfShorts f = new OfShorts(jcas);
ShortArray a = new ShortArray(jcas, 3);
a.set(0, (short)0);
a.set(1, (short)1);
a.set(2, (short)2);
f.setF1Shorts(a);
f.addToIndexes();
OfStrings ss = new OfStrings(jcas);
StringArray sa = new StringArray(jcas, 3);
sa.set(0, "0s");
sa.set(1, "1s");