MimeMessage m1 = ((Mail) a.get(0)).getMessage();
MimeMessage m2 = ((Mail) a.get(1)).getMessage();
assertNotSame(m1,m2);
assertEquals(m1.getSubject(),"new text 1");
assertEquals(m2.getSubject(),"new text 2");
m.dispose();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}