assertEquals("20 messages to user 1", messageDao.findByDestination(user1).size(), 20);
}
@Test
public void testFindRead() {
User user1 = createUser();
User user2 = createUser();
for (int i = 0; i < 10; i++) {
Message msg = new Message();
msg.setCreationDate(new Date());
msg.setSubject("subject " + i);
msg.setContent("content");