### Question:
Log implements Closeable { public Record<K, V> getOldestRecord() throws ChangelogException { sharedLock.lock(); try { return getOldestLogFile().getOldestRecord(); } finally { sharedLock.unlock(); } } private  Log(final ReplicationEnvironment replicationEnv, final File logPath, final RecordParser<K, V> parser,
      final LogRotationParameters rotationParams); File getPath(); void append(final Record<K, V> record); void syncToFileSystem(); RepositionableCursor<K, V> getCursor(); RepositionableCursor<K, V> getCursor(final K key); RepositionableCursor<K, V> getCursor(final K key, final KeyMatchingStrategy matchingStrategy,
      final PositionStrategy positionStrategy); Record<K, V> getOldestRecord(); Record<K, V> getNewestRecord(); long getNumberOfRecords(); Record<K,V> purgeUpTo(final K purgeKey); void clear(); @Override void close();  }### Answer:
@Test public void testGetOldestRecord() throws Exception { try (Log<String, String> log = openLog(LogFileTest.RECORD_PARSER)) { Record<String, String> record = log.getOldestRecord(); assertThat(record).isEqualTo(Record.from("key001", "value1")); } }