assertFalse(iter.hasNext());
this.cas.setCurrentComponentInfo(null);
//repeat with JCas
this.cas.reset();
JCas jcas = this.cas.getJCas();
JCas jview1 = jcas.createView("View1");
JCas jview2 = jcas.createView("View2");
Iterator<JCas> jCasIter = jcas.getViewIterator();
assertEquals(jcas, jCasIter.next());
assertEquals(jview1, jCasIter.next());
assertEquals(jview2, jCasIter.next());
assertFalse(jCasIter.hasNext());
JCas jviewE1 = jcas.createView("EnglishDocument");
JCas jviewE2 = jcas.createView("EnglishDocument.2");
jCasIter = jcas.getViewIterator("EnglishDocument");
assertEquals(jviewE1, jCasIter.next());
assertEquals(jviewE2, jCasIter.next());
assertFalse(jCasIter.hasNext());