Set<String> records() {
            return Collections.unmodifiableSet(
                records.stream().map(record -> record.record).collect(Collectors.toSet())
            );
        }
A simple Coordinator implementation that stores the records into a set.
group-coordinator/src/test/java/org/apache/kafka/coordinator/group/runtime/CoordinatorRuntimeTest.java