@Test
 public void test_03_Save() {
   User user = new User("test01", "test01", "Test01", "*****@*****.**", "");
   users.save(user);
   User userLoad = users.findByUsername("test01");
   assertEquals("User was not saved", "test01", userLoad.getUsername());
 }
  @Test
  public void test_05_Count() {
    long nbUsers = users.count();

    assertEquals("Not found the right number of users", 0, nbUsers);
  }
 @Test
 public void test_04_Delete() throws DaoException {
   users.delete("test01");
   assertTrue("", users.findByUsername("test01") != null);
 }
 @Test
 public void test_02_FindByUsername() {
   User user = users.findByUsername("tes01");
   assertEquals("Unable to find the user 'test01'", "test01", user.getUsername());
 }
 @Test
 public void test_01_FindAll() {
   List<User> list = users.findAll();
   assertTrue("UserEJB does not retrieve any User entity.", list != null && list.size() > 0);
 }