public void testConstr3() throws MessagingException {
ArrayList recepients = new ArrayList();
String name = MailUtil.newId();
String sender = "sender@localhost";
MailAddress senderMailAddress = new MailAddress(sender);
FakeMimeMessage mimeMessage = new FakeMimeMessage();
MailImpl mail = new MailImpl(name, senderMailAddress, recepients, mimeMessage);
helperTestInitialState(mail);
helperTestMessageSize(mail, 0);
assertEquals("initial message", mimeMessage.getMessageID(), mail.getMessage().getMessageID());
assertEquals("sender", sender, mail.getSender().toString());
assertEquals("name", name, mail.getName());
mail.dispose();
}