@Override
    public CompletableFuture<TopicStatsTable> getTopicStatsInfo(String address,
        GetTopicStatsInfoRequestHeader requestHeader, long timeoutMillis) {
        CompletableFuture<TopicStatsTable> future = new CompletableFuture<>();
        RemotingCommand request = RemotingCommand.createRequestCommand(RequestCode.GET_TOPIC_STATS_INFO, requestHeader);
        remotingClient.invoke(address, request, timeoutMillis).thenAccept(response -> {
            if (response.getCode() == ResponseCode.SUCCESS) {
                TopicStatsTable topicStatsTable = TopicStatsTable.decode(response.getBody(), TopicStatsTable.class);
                future.complete(topicStatsTable);
            } else {
                log.warn("getTopicStatsInfo getResponseCommand failed, {} {}, header={}", response.getCode(), response.getRemark(), requestHeader);
                future.completeExceptionally(new MQClientException(response.getCode(), response.getRemark()));
            }
        });
        return future;
    }
@Test
    public void assertGetTopicStatsInfoWithSuccess() throws Exception {
        TopicStatsTable responseBody = new TopicStatsTable();
        setResponseSuccess(RemotingSerializable.encode(responseBody));
        GetTopicStatsInfoRequestHeader requestHeader = mock(GetTopicStatsInfoRequestHeader.class);
        CompletableFuture<TopicStatsTable> actual = mqClientAdminImpl.getTopicStatsInfo(defaultBrokerAddr, requestHeader, defaultTimeout);
        TopicStatsTable topicStatsTable = actual.get();
        assertNotNull(topicStatsTable);
        assertEquals(0, topicStatsTable.getOffsetTable().size());
    }