### Question:
JCasFactory { public static JCas createJCas() throws ResourceInitializationException, CASException { return CasFactory.createCas().getJCas(); } private  JCasFactory(); static JCas createText(String aText); static JCas createText(String aText, String aLanguage); static JCas createJCas(); static JCas createJCas(String... typeSystemDescriptorNames); static JCas createJCasFromPath(String... typeSystemDescriptorPaths); static JCas createJCas(TypeSystemDescription typeSystemDescription); static JCas createJCas(String fileName, TypeSystemDescription typeSystemDescription);  }### Answer:
@Test public void testCreate() throws UIMAException { jCas = JCasFactory.createJCas(); jCas.setDocumentText("For great 20 minute talks, check out TED.com."); AnnotationFactory.createAnnotation(jCas, 0, 3, Token.class); assertEquals("For", JCasUtil.selectByIndex(jCas, Token.class, 0).getCoveredText()); }