### Question:
UserService { public void registerUser(UserDto userDto) { String bCryptPassword = bCryptPasswordEncoder.encode(userDto.getPassword()); userDto.setPassword(bCryptPassword); userDao.save(userMapper.toEntity(userDto)); } UserService(UserDao userDao,
	                   UserMapper userMapper,
	                   BCryptPasswordEncoder bCryptPasswordEncoder,
	                   LoginLogServiceRpc loginLogServiceRpc,
	                   RoleDao roleDao,
	                   ResourceDao resourceDao,
	                   UserRoleDao userRoleDao,
	                   RoleMapper roleMapper,
	                   ResourceDao resourceDao1,
	                   ResourceMapper resourceMapper, JPAQueryFactory jpaQueryFactory); void registerUser(UserDto userDto); Page<UserDto> findByCondition(UserDto userDto, Pageable pageable); void deleteByIds(List<String> userIds); void updateByPrimaryKey(UserDto userDto); void changePassword(String userId, String oldPassword, String newOnePass); UserDto getUserPermission(String id); List<UserDto> findUsersOfRole(RoleDto roleDto); UserDto findById(String userId); UserDto findByCondition(UserDto userDto); void updateUserProfile(UserDto userDto);  }### Answer:
@Test public void registerUser() { UserDto user = new UserDto(); user.setAccount("6666666666"); user.setPassword("mima"); user.setUserName("zhangsan"); user.setNickName("zhangsan"); user.setSex(true); user.setEmail("ddddd@qq.com"); user.setPhone("1"); userService.registerUser(user); }