public List<String> listWorkerGroupIpPort(long workerGroupId) throws UserException {
        List<String> addresses = new ArrayList<>();
        prepare();
        try {
            List<WorkerGroupDetailInfo> workerGroupDetailInfos = client.
                    listWorkerGroup(serviceId, Collections.singletonList(workerGroupId), true);
            Preconditions.checkState(1 == workerGroupDetailInfos.size());
            WorkerGroupDetailInfo workerGroupInfo = workerGroupDetailInfos.get(0);
            for (WorkerInfo workerInfo : workerGroupInfo.getWorkersInfoList()) {
                addresses.add(workerInfo.getIpPort());
            }
            return addresses;
        } catch (StarClientException e) {
            throw new UserException("Fail to get workers by default group id, error: " + e.getMessage());
        }
    }
@Test
    public void testListDefaultWorkerGroupIpPort() throws StarClientException, DdlException, UserException {
        new MockUp<StarClient>() {
            @Mock
            public List<WorkerGroupDetailInfo> listWorkerGroup(String serviceId, List<Long> groupIds, boolean include) {
                long workerId0 = 10000L;
                WorkerInfo worker0 = newWorkerInfo(workerId0, "127.0.0.1:8090", 9050, 9060, 8040, 8060, 10);
                long workerId1 = 10001L;
                WorkerInfo worker1 = newWorkerInfo(workerId1, "127.0.0.2:8091", 9051, 9061, 8041, 8061, 10);
                WorkerGroupDetailInfo group = WorkerGroupDetailInfo.newBuilder().addWorkersInfo(worker0)
                        .addWorkersInfo(worker1).build();
                return Lists.newArrayList(group);
            }
        };
        List<String> addresses = starosAgent.listWorkerGroupIpPort(StarOSAgent.DEFAULT_WORKER_GROUP_ID);
        Assert.assertEquals("127.0.0.1:8090", addresses.get(0));
        Assert.assertEquals("127.0.0.2:8091", addresses.get(1));
    }