### Question:
ApacheSolr implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isDirectory() && file.getName().equals(indexName); }  @Override void beforeStart(final Map<String, Object> configuration); @Override void load(final File dataToBeIndexed, final File configFolder, final String collection, String version); @Override void start(); @Override void afterStart(); @Override void beforeStop(); @Override void close(); @Override QueryOrSearchResponse executeQuery(final String collection, final String version, final String queryString, final String[] fields, final int maxRows); @Override String getName(); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File file); @Override boolean isCorporaRequired();  }### Answer:
@Test public void isSearchPlatformFile_returnsFalseWhenNotDirectory() throws Exception { File dummyFile = tempFolder.newFile(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Test public void isSearchPlatformFile_returnsFalseWhenDirectoryNotContainSolrConfig() { assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, tempFolder.getRoot())); }
@Test public void isSearchPlatformFile_returnsTrueWhenDirectoryContainsSolrConfig() throws Exception { File configFile = tempFolder.newFolder(INDEX_NAME); assertTrue(platform.isSearchPlatformConfiguration(INDEX_NAME, configFile)); }