twitter.createEntityManager();
List<UserCassandra> users = twitter.findUserByDigitalSignature((byte) 8);
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((byte) 8, pd.getDigitalSignature());
twitter.closeEntityManager();
twitter.createEntityManager();
List<UserCassandra> users2 = twitter.findUserByDigitalSignature((byte) 10);
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((byte) 10, pd2.getDigitalSignature());
twitter.closeEntityManager();
}