List<UserCassandra> users = twitter.findUserByBirthday(new java.sql.Date(new Date(Long
.parseLong("1344079061111")).getTime()));
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(new java.sql.Date(new Date(Long.parseLong("1344079061111")).getTime()), pd.getBirthday());
twitter.closeEntityManager();
twitter.createEntityManager();
List<UserCassandra> users2 = twitter.findUserByBirthday(new java.sql.Date(new Date(Long
.parseLong("1344079064444")).getTime()));
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(new java.sql.Date(new Date(Long.parseLong("1344079064444")).getTime()), pd2.getBirthday());
twitter.closeEntityManager();
}