### Question:
Elasticsearch implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); }  @Override void beforeStart(final Map<String, Object> configuration); @Override void load(final File dataToBeIndexed, File indexShapeFile, String collection, String version); @Override String getName(); @Override void start(); @Override void afterStart(); @Override void beforeStop(); @Override void close(); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File file); @Override boolean isCorporaRequired();  }### 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("index-shape.json"); assertTrue(platform.isSearchPlatformConfiguration(INDEX_NAME, configFile)); }