removeFields.put("test", PruningPolicy.DEL_POSTINGS | PruningPolicy.DEL_STORED);
IndexReader in = IndexReader.open(sourceDir, true);
TFTermPruningPolicy tfp = new TFTermPruningPolicy(in, removeFields, null, 2);
StorePruningPolicy stp = new StorePruningPolicy(in, removeFields);
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()) {