mail.setName(MailImpl.getId());
mail.setSender(new MailAddress("test@localhost"));
mail.setRecipients(Arrays.asList(new MailAddress("test@localhost"), new MailAddress("test2@localhost")));
AbstractStateMailetProcessor processor = createProcessor(createConfig(MockMatcher.class, MockMailet.class, 1));
processor.addListener(new MailetProcessorListener() {
@Override
public void afterMatcher(Matcher m, String mailName, Collection<MailAddress> recipients,
Collection<MailAddress> matches, long processTime, MessagingException e) {
if (MockMatcher.class.equals(m.getClass())) {