### Question:
AliyunLogManageServiceImpl implements AliyunLogManageService { @Override public BusinessWrapper<Boolean> saveServerGroupCfg(LogServiceServerGroupCfgVO cfgVO) { if (StringUtils.isEmpty(cfgVO.getTopic())) cfgVO.setTopic(cfgVO.getServerGroupDO().getName()); if (StringUtils.isEmpty(cfgVO.getServerGroupName())) cfgVO.setServerGroupName(cfgVO.getServerGroupDO().getName()); if (cfgVO.getServerGroupId() == 0) cfgVO.setServerGroupId(cfgVO.getServerGroupDO().getId()); if (!saveMachineGroup(cfgVO)) return new BusinessWrapper<>(false); try { if (cfgVO.getId() == 0) { logServiceDao.addLogServiceServerGroupCfg(cfgVO); } else { logServiceDao.updateLogServiceServerGroupCfg(cfgVO); } } catch (Exception e) { e.printStackTrace(); return new BusinessWrapper<>(false); } return new BusinessWrapper<>(true); }  @Override List<String> queryListProject(); @Override List<String> queryListLogStores(String project); @Override List<String> queryListMachineGroup(String project, String groupName); @Override MachineGroup getMachineGroup(String project, String groupName); @Override MachineGroupVO getMachineGroupVO(String project, String groupName); boolean updateMachineGroup(LogServiceServerGroupCfgVO cfgVO); boolean addMachineGroup(LogServiceServerGroupCfgVO cfgVO); @Override BusinessWrapper<Boolean> saveServerGroupCfg(LogServiceServerGroupCfgVO cfgVO); @Override LogServiceStatusVO logServiceStatus(); static final String LOG_SERVICE_CONFIG_NAME; }### Answer:
@Test public void testSaveServerGroupCfg() { ServerGroupDO serverGroupDO = serverGroupDao.queryServerGroupByName("group_member"); LogServiceServerGroupCfgVO cfgVO = new LogServiceServerGroupCfgVO(serverGroupDO); cfgVO.setProject("collect-web-service-logs"); cfgVO.setLogstore("logstore_apps"); System.err.println(aliyunLogManageServiceImpl.saveServerGroupCfg(cfgVO)); }