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