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((float) 10.0, pd.getCompliance(), 0.0);
twitter.closeEntityManager();
twitter.createEntityManager();
List<UserCassandra> users2 = twitter.findUserByCompliance((float) 9.80);
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((float) 9.80, pd2.getCompliance(), 0.0);
twitter.closeEntityManager();
}