public static ListClientMetricsResourcesResult listClientMetricsResourcesResult(KafkaException exception) {
        final KafkaFutureImpl<Collection<ClientMetricsResourceListing>> future = new KafkaFutureImpl<>();
        future.completeExceptionally(exception);
        return new ListClientMetricsResourcesResult(future);
    }
Helper to create a DescribeTopicsResult instance for a given topic.
DescribeTopicsResult's constructor is only accessible from within the
admin package.
clients/src/test/java/org/apache/kafka/clients/admin/AdminClientTestUtils.java