}
@Test
public void testIntersectionWithFilter() throws Exception {
IndexReader reader = createReaderWithSampleDocuments();
IntersectionProvider filter = new FilterIntersectionProvider(
TermsFilter.from(new Term("name", "one"), new Term("name", "two")));
assertFilterBitsEqual(reader, new PhraseFilter("f", "world"), true, true, true);
assertFilterBitsEqual(reader, new PhraseFilter(filter, "f", "world"), true, true, false);