### Question:
UserService { public User createUser(User user) { passwordHelper.encryptPassword(user); return userDao.createUser(user); }  User createUser(User user); User updateUser(User user); void deleteUser(Long userId); User findOne(Long userId); List<User> findAll(); void changePassword(Long userId, String newPassword); Set<String> findRoles(String username); Set<String> findPermissions(String username); User findByUsername(String username);  }### Answer:
@Test @Rollback(false) public void test1(){ List<Long> list = new ArrayList<Long>(); list.add(Long.parseLong("1")); User user = new User(); user.setUsername("qqq"); user.setPassword("qqq"); user.setSalt("1"); user.setRoleIds(list); user.setLocked(false); userService.createUser(user); assertNotNull("1"); }