/**
* Test for {@link UserAccountBean}.
*/
@Test
public void testUnitUserBean(){
final UserAccountBean userBean = new UserAccountBean();
userBean.setId(1L);
userBean.setDateNew(new Date());
userBean.setEmail("juanATencuestame.org");
userBean.setInviteCode("code");
userBean.setName("name");
userBean.setPassword("password");
userBean.setPrimaryUserId(1L);
userBean.setStatus(Boolean.TRUE);
userBean.setUsername("username");
final Collection<UnitPermission> listPermission = new HashSet<UnitPermission>();
userBean.setListPermission(listPermission);
final Collection<UnitGroupBean> listGroups = new HashSet<UnitGroupBean>();
userBean.setListGroups(listGroups);
assertNotNull(userBean.getId());
assertNotNull(userBean.getDateNew());
assertNotNull(userBean.getEmail());
assertNotNull(userBean.getInviteCode());
assertNotNull(userBean.getName());
assertNotNull(userBean.getPassword());
assertNotNull(userBean.getPrimaryUserId());
assertNotNull(userBean.getStatus());
assertNotNull(userBean.getUsername());
assertEquals(userBean.getListGroups().size(), 0);
assertEquals(userBean.getListPermission().size(), 0);
}