### Question:
LogFile implements Closeable { Record<K, V> getOldestRecord() throws ChangelogException { try (final DBCursor<Record<K, V>> cursor = getCursor()) { return cursor.next() ? cursor.getRecord() : null; } } private  LogFile(final File logFilePath, final RecordParser<K, V> parser, boolean isWriteEnabled); @Override void close(); @Override int hashCode(); @Override boolean equals(Object that); @Override String toString();  }### Answer:
@Test public void testGetOldestRecord() throws Exception { try (LogFile<String, String> changelog = getLogFile(RECORD_PARSER)) { Record<String, String> record = changelog.getOldestRecord(); assertThat(record).isEqualTo(Record.from("key01", "value1")); } }