/**
* @return
* @throws MessagingException
*/
private Mail createMail(String[] recipients) throws MessagingException {
Mail mail = new FakeMail();
ArrayList<MailAddress> a = new ArrayList<MailAddress>(recipients.length);
for (int i = 0; i < recipients.length; i++) {
a.add(new MailAddress(recipients[i]));
}
mail.setRecipients(a);
mail.setMessage(new FakeMimeMessage());
return mail;
}