PruningReader tfr = new PruningReader(in, stp, tfp);
Document doc = tfr.document(4);
// removed stored values?
assertNull(doc.get("test"));
// removed postings ?
TermEnum te = tfr.terms();
while (te.next()) {
assertFalse("test".equals(te.term().field()));
}
// but vectors should be present !
TermFreqVector tv = tfr.getTermFreqVector(4, "test");