### Question:
UserServiceImpl implements UserService { @Override public int userRegister(TUser user) { PasswordUtils.encryptPassword(user); return userExt.insertSelective(user); }  @Override List<TPermission> selectAll(); @Override TUser selectUserByUserName(String username); @Override String selectRoleNameByUserName(String username); @Override List<String> selectPermissionsByRoleName(String roleName); @Override int userRegister(TUser user);  }### Answer:
@Test public void userRegister() { TUser user = new TUser(); user.setUsername("user2"); user.setPassword("1234"); user.setRoleId(2); System.out.println("===============" + userService.userRegister(user)); }