### Question:
TransactionLogFiles extends LifecycleAdapter implements LogFiles { @Override public boolean isLogFile( File file ) { return fileHelper.getLogFilenameFilter().accept( null, file.getName() ); } TransactionLogFiles( File logsDirectory, String name, TransactionLogFilesContext context ); @Override void init(); @Override void start(); @Override void shutdown(); @Override long getLogVersion( File historyLogFile ); @Override long getLogVersion( String historyLogFilename ); @Override File[] logFiles(); @Override boolean isLogFile( File file ); @Override File logFilesDirectory(); @Override File getLogFileForVersion( long version ); @Override File getHighestLogFile(); @Override boolean versionExists( long version ); @Override LogHeader extractHeader( long version ); @Override boolean hasAnyEntries( long version ); @Override long getHighestLogVersion(); @Override long getLowestLogVersion(); @Override void accept( LogVersionVisitor visitor ); @Override PhysicalLogVersionedStoreChannel openForVersion( long version ); @Override void accept( LogHeaderVisitor visitor ); @Override LogFile getLogFile(); @Override TransactionLogFileInformation getLogFileInformation(); static final String DEFAULT_NAME; static final FilenameFilter DEFAULT_FILENAME_FILTER; }### Answer:
@Test public void isLogFile() throws IOException { LogFiles logFiles = createLogFiles(); assertFalse( logFiles.isLogFile( new File( "aaa.tx.log" ) ) ); assertTrue( logFiles.isLogFile( new File( "filename.0" ) ) ); assertTrue( logFiles.isLogFile( new File( "filename.17" ) ) ); }