cal.setTime(new Date(1344079067777l));
List<UserCassandra> users = twitter.findUserByGraduationDay(cal);
Assert.assertNotNull(users);
Assert.assertFalse(users.isEmpty());
Assert.assertTrue(users.size() == 1);
UserCassandra user = users.get(0);
Assert.assertNotNull(user);
Assert.assertEquals(userId1, user.getUserId());
ProfessionalDetailCassandra pd = user.getProfessionalDetail();
Assert.assertNotNull(pd);
Assert.assertEquals(cal, pd.getGraduationDay());
twitter.closeEntityManager();
twitter.createEntityManager();
Calendar cal2 = Calendar.getInstance();
cal2.setTime(new Date(1344079068888l));
List<UserCassandra> users2 = twitter.findUserByGraduationDay(cal2);
Assert.assertNotNull(users2);
Assert.assertFalse(users2.isEmpty());
Assert.assertTrue(users2.size() == 1);
UserCassandra user2 = users2.get(0);
Assert.assertNotNull(user2);
Assert.assertEquals(userId2, user2.getUserId());
ProfessionalDetailCassandra pd2 = user2.getProfessionalDetail();
Assert.assertNotNull(pd2);
Assert.assertEquals(cal2, pd2.getGraduationDay());
twitter.closeEntityManager();
}