### Question:
LogFile implements Closeable { Record<K, V> getNewestRecord() throws ChangelogException { if (newestRecord == null) { try (BlockLogReader<K, V> reader = getReader()) { sharedLock.lock(); try { newestRecord = reader.getNewestRecord(); } finally { sharedLock.unlock(); } } catch (IOException ioe) { throw new ChangelogException(ERR_CHANGELOG_CANNOT_READ_NEWEST_RECORD.get(logfile.getAbsolutePath()), ioe); } } return newestRecord; } 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 testGetNewestRecord() throws Exception { try (LogFile<String, String> changelog = getLogFile(RECORD_PARSER)) { Record<String, String> record = changelog.getNewestRecord(); assertThat(record).isEqualTo(Record.from("key10", "value10")); } }