GroupState collectGroupState(String groupId) throws Exception {
            return collectGroupsState(Collections.singleton(groupId)).get(groupId);
        }
Returns states of the specified consumer groups and partition assignment states
tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java