public static <T> Set<T> set(Collection<T> set) {
        return new HashSet<>(set);
    }
Validates that the output of the list command corresponds to the expected values.

@param args              The arguments for the command line tool.
@param expectedHeader    The expected header as a list of strings; or an empty list
                         if a header is not expected.
@param expectedRows      The expected rows as a set of list of columns.
@throws InterruptedException
tools/src/test/java/org/apache/kafka/tools/consumer/group/ListConsumerGroupTest.java