@Before
public void setUp() throws Exception {
index = new LuceneMessageSearchIndex<Long>(new RAMDirectory());
List<org.apache.james.mailbox.store.SimpleHeader> headersSubject = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
headersSubject.add(new SimpleHeader("Subject", 1, "test"));
List<org.apache.james.mailbox.store.SimpleHeader> headersTest = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
headersSubject.add(new SimpleHeader("Test", 1, "test"));
List<org.apache.james.mailbox.store.SimpleHeader> headersTestSubject = new ArrayList<org.apache.james.mailbox.store.SimpleHeader>();
headersTestSubject.add(new SimpleHeader("Test", 1, "test"));
headersTestSubject.add(new SimpleHeader("Subject", 2, "test2"));
SimpleMailboxMembership m = new SimpleMailboxMembership(mailbox.getMailboxId(),1, new Date(), 200, new Flags(Flag.ANSWERED), "My Body".getBytes(), headersSubject);
index.add(null, mailbox, m);
SimpleMailboxMembership m2 = new SimpleMailboxMembership(mailbox2.getMailboxId(),1, new Date(), 20, new Flags(Flag.ANSWERED), "My Body".getBytes(), headersSubject);