@Override
  public int hashCode() {
    return Objects.hash(timestamp);
  }
@Test
  public void testMetadataShouldNotInterfereInEquality() {
    final HeartbeatRecord record1 =
        new HeartbeatRecord(
            Timestamp.ofTimeMicroseconds(1L), mock(ChangeStreamRecordMetadata.class));
    final HeartbeatRecord record2 =
        new HeartbeatRecord(
            Timestamp.ofTimeMicroseconds(1L), mock(ChangeStreamRecordMetadata.class));

    assertEquals(record1, record2);
    assertEquals(record1.hashCode(), record2.hashCode());
  }