private Mockery mockery = new JUnit4Mockery();
private MailboxPath path = new MailboxPath(null, null, "test");
@Before
public void setUp() throws Exception {
dispatcher = new MailboxEventDispatcher();
collector = new EventCollector();
dispatcher.addMailboxListener(collector);
result = mockery.mock(MessageResult.class);
mockery.checking(new Expectations() {{
allowing(result).getUid();will(returnValue(23L));