### Question:
UserServiceImpl implements UserService { public void updateUser(DJUser user) { userDao.update(user); }  void setUserDao(UserDao userDao); void setSystemDao(SystemDao systemDao); java.util.List<DJResource> findCanAccressResourcesOfCerrentSystemAndUser(Integer userId, Integer systemId); java.util.List<DJMenu> findCanAccressMenusOfCerrentSystemAndUser(Integer userId, Integer systemId); java.util.List<DJRole> findHasAuthOfUser(Integer userId, Integer systemId); DJUser findUserByUserId(Integer userId); boolean findUserIsDel(Integer userId, Integer systemId); void insertUser(DJUser user); void updateUser(DJUser user);  }### Answer:
@Test public void testUpdateUser() throws Exception { DJUser user = userService.findUserByUserId(2); user.isdel=1; DJRole role = new DJRole(); role.id=1; List roles = new ArrayList(); roles.add(role); user.roles=roles; userService.updateUser(user); }