### Question:
EnterpriseReadReplicaEditionModule extends DefaultEditionModule { static Predicate<String> fileWatcherFileNameFilter() { return Predicates.any( fileName -> fileName.startsWith( TransactionLogFiles.DEFAULT_NAME ), fileName -> fileName.startsWith( IndexConfigStore.INDEX_DB_FILE_NAME ), filename -> filename.startsWith( StoreUtil.BRANCH_SUBDIRECTORY ), filename -> filename.startsWith( StoreUtil.TEMP_COPY_DIRECTORY_NAME ), filename -> filename.endsWith( PageCacheWarmer.SUFFIX_CACHEPROF ) ); } EnterpriseReadReplicaEditionModule( final PlatformModule platformModule, final DiscoveryServiceFactory discoveryServiceFactory, MemberId myself ); @Override void registerEditionSpecificProcedures( Procedures procedures ); @Override void createSecurityModule( PlatformModule platformModule, Procedures procedures );  }### Answer:
@Test void fileWatcherFileNameFilter() { DatabaseLayout databaseLayout = testDirectory.databaseLayout(); Predicate<String> filter = EnterpriseReadReplicaEditionModule.fileWatcherFileNameFilter(); String metadataStoreName = databaseLayout.metadataStore().getName(); assertFalse( filter.test( metadataStoreName ) ); assertFalse( filter.test( databaseLayout.nodeStore().getName() ) ); assertTrue( filter.test( TransactionLogFiles.DEFAULT_NAME + ".1" ) ); assertTrue( filter.test( IndexConfigStore.INDEX_DB_FILE_NAME + ".any" ) ); assertTrue( filter.test( StoreUtil.BRANCH_SUBDIRECTORY ) ); assertTrue( filter.test( StoreUtil.TEMP_COPY_DIRECTORY_NAME ) ); assertTrue( filter.test( metadataStoreName + PageCacheWarmer.SUFFIX_CACHEPROF ) ); }