### Question:
AdminServiceImpl implements AdminService { @Override public IPage<UserDO> getUserPageByGroupId(Long groupId, Long count, Long page) { Page pager = new Page(page, count); IPage<UserDO> iPage; if (groupId == null) { iPage = userService.page(pager); } else { iPage = userService.getUserPageByGroupId(pager, groupId); } return iPage; }  @Override IPage<UserDO> getUserPageByGroupId(Long groupId, Long count, Long page); @Override boolean changeUserPassword(Long id, ResetPasswordDTO dto); @Transactional @Override boolean deleteUser(Long id); @Override boolean updateUserInfo(Long id, UpdateUserInfoDTO validator); @Override IPage<GroupDO> getGroupPage(Long page, Long count); @Override GroupPermissionsBO getGroup(Long id); @Transactional @Override boolean createGroup(NewGroupDTO dto); @Override boolean updateGroup(Long id, UpdateGroupDTO dto); @Override boolean deleteGroup(Long id); @Override boolean dispatchPermission(DispatchPermissionDTO dto); @Override boolean dispatchPermissions(DispatchPermissionsDTO dto); @Override boolean removePermissions(RemovePermissionsDTO dto); @Override List<GroupDO> getAllGroups(); @Override List<PermissionDO> getAllPermissions(); @Override Map<String, List<PermissionDO>> getAllStructualPermissions();  }### Answer:
@Test public void getUserPageByGroupId() { GroupDO group = mockData1(); IPage<UserDO> iPage = adminService.getUserPageByGroupId(null, 10L, 0L); assertTrue(iPage.getTotal() > 0); assertTrue(iPage.getSize() == 10); assertTrue(iPage.getCurrent() == 0); boolean anyMatch = iPage.getRecords().stream().anyMatch(it -> it.getUsername().equals("pedro大大")); assertTrue(anyMatch); }
@Test public void getUserPageByGroupId1() { GroupDO group = mockData1(); IPage<UserDO> iPage = adminService.getUserPageByGroupId(group.getId(), 10L, 0L); assertTrue(iPage.getTotal() > 0); boolean anyMatch = iPage.getRecords().stream().anyMatch(it -> it.getUsername().equals("pedro大大")); assertTrue(anyMatch); anyMatch = iPage.getRecords().stream().anyMatch(it -> it.getNickname().equals("pedro小小")); assertTrue(anyMatch); }