private <T> Set<T> iterableToSet(Iterable<T> iterable) {
        return StreamSupport.stream(iterable.spliterator(), false).collect(Collectors.toSet());
    }
Verifies the logic we have in UpdateMetadataRequest to present a unified interface across the various versions
works correctly. For example, `UpdateMetadataPartitionState.topicName` is not serialized/deserialized in
recent versions, but we set it manually so that we can always present the ungrouped partition states
independently of the version.
clients/src/test/java/org/apache/kafka/common/requests/UpdateMetadataRequestTest.java