@Test(expected = IllegalStateException.class)
public void testIterable_noTermVectors() throws IOException {
RAMDirectory directory = createTestIndex(Field.TermVector.NO);
IndexReader reader = IndexReader.open(directory, true);
Weight weight = new TFIDF();
TermInfo termInfo = new CachedTermInfo(reader, "content", 1, 100);
VectorMapper mapper = new TFDFMapper(reader, weight, termInfo);
LuceneIterable iterable = new LuceneIterable(reader, "id", "content", mapper);
Iterator<Vector> iterator = iterable.iterator();