assertTrue(user.getRoles().size() == 2);
assertEquals(2, user.getRoles().size());
    public void testAddUserRole() throws Exception {        user = dao.getUser("tomcat");        assertTrue(user.getRoles().size() == 1);        user.addRole(Constants.ADMIN_ROLE);        user = dao.saveUser(user);        assertTrue(user.getRoles().size() == 2);        // add the same role twice - should result in no additional role        user.addRole(Constants.ADMIN_ROLE);        user = dao.saveUser(user);        assertTrue("more than 2 roles [" + user.getRoles().size() + "]",                   user.getRoles().size() == 2);        user.getRoles().remove(1);        user = dao.saveUser(user);        assertTrue(user.getRoles().size() == 1);    }