public long getWorkerTabletNum(String workerIpPort) {
        try {
            WorkerInfo workerInfo = client.getWorkerInfo(serviceId, workerIpPort);
            return workerInfo.getTabletNum();
        } catch (StarClientException e) {
            LOG.info("Failed to get worker tablet num from starMgr, Error: {}.", e.getMessage());
        }
        return 0;
    }
@Test
    public void testGetWorkerTabletNum() throws StarClientException {
        String serviceId = "1";
        String workerIpPort = "127.0.0.1:8093";
        long workerId = 20000L;
        int expectedTabletNum = 10086;
        Deencapsulation.setField(starosAgent, "serviceId", serviceId);
        WorkerInfo worker = newWorkerInfo(workerId, workerIpPort, 9050, 9060, 8040, 8060, expectedTabletNum);

        new Expectations() {
            {
                client.getWorkerInfo(serviceId, workerIpPort);
                minTimes = 1;
                result = worker;
            }
        };
        long tabletNum = starosAgent.getWorkerTabletNum(workerIpPort);
        Assert.assertEquals(expectedTabletNum, worker.getTabletNum());
        Assert.assertEquals(expectedTabletNum, tabletNum);
    }