### Question:
ExternalElasticsearch extends Elasticsearch { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  @Override void beforeStart(Map<String, Object> configuration); @Override void start(); @Override void load(File dataToBeIndexed, File settingsFile, String collection, String version); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override String getName(); @Override boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings); @Override boolean isCorporaRequired(); @Override void close();  }### Answer:
@Test public void isSearchPlatformFile_returnsFalseWhenDirectory() throws Exception { File dummyFile = tempFolder.newFolder(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Test public void isSearchPlatformFile_returnsFalseWhenFileIsNotESConfig() throws Exception { File dummyFile = tempFolder.newFile(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Test public void isSearchPlatformFile_returnsTrueWhenDirectoryContainsConfig() throws Exception { File configFile = tempFolder.newFile(ExternalElasticsearch.SETTINGS_FILE); assertTrue(platform.isSearchPlatformConfiguration(INDEX_NAME, configFile)); }