@Override
        public int hashCode() {
            return Objects.hash(leaderEpoch, appendTimestamp, records);
        }
The LocalLogManager is a test implementation that relies on the contents of memory.
metadata/src/test/java/org/apache/kafka/metalog/LocalLogManager.java