### Question:
UserServiceImpl implements UserService { @Override public void batchUpdateUserState(BatchReq<UserStateReq> userStateReqs) { checkParam(userStateReqs); Map<Integer, List<String>> userStateMap = groupUserIdByUserState(userStateReqs); if (!userStateMap.isEmpty()) { for (Integer userStateCode : userStateMap.keySet()) { userDAO.batchUpdateUserState(userStateCode, userStateMap.get(userStateCode)); } } }  @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 batchUpdateUserState() throws Exception { BatchReq<UserStateReq> batchReq = new BatchReq<>(); List<UserStateReq> userStateReqList = Lists.newArrayList(); userStateReqList.add(new UserStateReq("1",0)); userStateReqList.add(new UserStateReq("15251896025",0)); userStateReqList.add(new UserStateReq("USERaa4bc3e513114d5799888b0a292c3a14",1)); userStateReqList.add(new UserStateReq("XXXX",1)); batchReq.setReqList(userStateReqList); userService.batchUpdateUserState(batchReq); }