ReNounSeedDocument extends BaleenCollectionReader { @Override public boolean doHasNext() throws IOException, CollectionException { return !supplied; }  @Override // IGNORE boolean doHasNext();  }
@Test public void test() throws Exception { BaleenCollectionReader bcr = getCollectionReader(); assertTrue(bcr.doHasNext()); bcr.getNext(jCas.getCas()); assertFalse(jCas.getDocumentText().isEmpty()); assertFalse(bcr.doHasNext()); bcr.close(); }