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