userDao = createMock(UserDao.class);
service = new SeteUserServiceImpl();
//setup some data
seteUsers = new ArrayList<SeteUser>();
SeteUser user1 = new SeteUser();
user1.setFirstName("Johnny");
user1.setLastName("Mohseni");
user1.setLoginName("Johnny");
user1.setPassword("sete");
Set<UserRolePrivilege> urps = new HashSet<UserRolePrivilege>();
UserRolePrivilege urp = new UserRolePrivilege();
urp.setUserRoleType(TypeUtil.forKey(UserRoleType.class, "student"));
urps.add(urp);
user1.setUserRolePrivileges(urps);
SeteUser user2 = new SeteUser();
user2.setFirstName("Jason");
user2.setLastName("Clow");
user2.setLoginName("Jason");
user2.setPassword("sete");
user2.setUserRolePrivileges(urps);
seteUsers.add(user1);
seteUsers.add(user2);
//set "mocked" dao Object that talks to database