@@ -0,0 +1,1600 @@
+package com.greplin.lucene.filter;%0A%0Aimport org.apache.lucene.document.Document;%0Aimport org.apache.lucene.document.Field;%0Aimport org.apache.lucene.index.IndexReader;%0Aimport org.apache.lucene.index.IndexWriter;%0Aimport org.apache.lucene.index.Term;%0Aimport org.apache.lucene.search.Filter;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Tests for filter utility methods.%0A */%0Apublic class FiltersTest extends BaseFilterTest %7B%0A%0A  private IndexReader reader;%0A%0A%0A  @Before%0A  public void setUp() throws Exception %7B%0A    IndexWriter w = createWriter();%0A%0A    Document doc1 = new Document();%0A    doc1.add(new Field(%22f%22, %22dog%22, Field.Store.YES, Field.Index.ANALYZED));%0A    doc1.add(new Field(%22f%22, %22cat%22, Field.Store.YES, Field.Index.ANALYZED));%0A    doc1.add(new Field(%22f%22, %22rat%22, Field.Store.YES, Field.Index.ANALYZED));%0A    w.addDocument(doc1);%0A%0A    Document doc2 = new Document();%0A    doc2.add(new Field(%22f%22, %22dog%22, Field.Store.YES, Field.Index.ANALYZED));%0A    doc2.add(new Field(%22f%22, %22monkey%22, Field.Store.YES, Field.Index.ANALYZED));%0A    doc2.add(new Field(%22f%22, %22goose%22, Field.Store.YES, Field.Index.ANALYZED));%0A    w.addDocument(doc2);%0A%0A    this.reader = createReader(w);%0A  %7D%0A%0A%0A  @Test%0A  public void testNot() throws Exception %7B%0A    Filter dog = TermsFilter.from(new Term(%22f%22, %22dog%22));%0A    assertDocIds(dog.getDocIdSet(reader), true, true);%0A    assertDocIds(Filters.not(dog).getDocIdSet(reader), false, false);%0A%0A    Filter cat = TermsFilter.from(new Term(%22f%22, %22cat%22));%0A    assertDocIds(cat.getDocIdSet(reader), true, false);%0A    assertDocIds(Filters.not(cat).getDocIdSet(reader), false, true);%0A  %7D%0A%0A%7D%0A

Add test for Filters.not