### Question:
UserServiceImpl implements UserService { @Override public void updatePermissionOfRole(RolePermissionReq rolePermissionReq) { checkParam(rolePermissionReq); userDAO.deleteRolePermission(rolePermissionReq.getRoleId()); userDAO.insertRolePermission(rolePermissionReq); }  @Override UserEntity login(LoginReq loginReq); @Override List<UserEntity> findUsers(UserQueryReq userQueryReq); @Override UserEntity register(RegisterReq registerReq); @Override void batchUpdateUserState(BatchReq<UserStateReq> userStateReqs); @Override void createAdminUser(AdminCreateReq adminCreateReq); @Override List<RoleEntity> findRoles(); @Override void deleteRole(String roleId); @Override void updateMenuOfRole(RoleMenuReq roleMenuReq); @Override void updatePermissionOfRole(RolePermissionReq rolePermissionReq); @Override List<PermissionEntity> findPermissions(); @Override List<MenuEntity> findMenus(); @Override List<LocationEntity> findLocations(String userId); @Override String createLocation(LocationCreateReq locationCreateReq, String userId); @Override void deleteLocation(String locationId, String userId); @Override void modifyLocation(LocationUpdateReq locationUpdateReq, String userId);  }### Answer:
@Test public void updatePermissionOfRole() throws Exception { RolePermissionReq rolePermissionReq = new RolePermissionReq(); rolePermissionReq.setRoleId("2"); rolePermissionReq.setPermissionIdList(Arrays.asList("2","3","4","5","6")); userService.updatePermissionOfRole(rolePermissionReq); }