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