public static ListPartitionReassignmentsResult listPartitionReassignmentsResult(Throwable t) {
        KafkaFutureImpl<Map<TopicPartition, PartitionReassignment>> future = new KafkaFutureImpl<>();
        future.completeExceptionally(t);
        return new ListPartitionReassignmentsResult(future);
    }
Helper to create a ListPartitionReassignmentsResult instance for a given Throwable.
ListPartitionReassignmentsResult's constructor is only accessible from within the
admin package.
clients/src/test/java/org/apache/kafka/clients/admin/AdminClientTestUtils.java