public static CoordinatorRecord newGroupEpochRecord(
        String groupId,
        int newGroupEpoch
    ) {
        return newGroupEpochRecord(groupId, newGroupEpoch, GroupType.CONSUMER);
    }
Creates a ConsumerGroupMetadata record.

@param groupId       The consumer group id.
@param newGroupEpoch The consumer group epoch.
@return The record.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/CoordinatorRecordHelpers.java