### Question:
GeoGigDataStoreFactory implements DataStoreFactorySpi { @Override public boolean canProcess(Map<String, Serializable> params) { try { final String repoParam = (String) REPOSITORY.lookUp(params); final String resolverClass = (String) RESOLVER_CLASS_NAME.lookUp(params); if (resolverClass != null) { return true; } File repository = new File(repoParam); return repository instanceof File && ((File) repository).isDirectory() || Boolean.TRUE.equals(CREATE.lookUp(params)); } catch (IOException ignoreMe) { } if (params.containsKey(REPOSITORY.key)) { LOGGER.warn("Unable to process parameter %s: '%s'", REPOSITORY.key, params.get(REPOSITORY.key)); } return false; }  @Override String getDisplayName(); @Override String getDescription(); @Override Param[] getParametersInfo(); @Override boolean canProcess(Map<String, Serializable> params); @Override boolean isAvailable(); @Override Map<Key, ?> getImplementationHints(); @Override GeoGigDataStore createDataStore(Map<String, Serializable> params); @Override GeoGigDataStore createNewDataStore(Map<String, Serializable> params); static final String DISPLAY_NAME; static final Param RESOLVER_CLASS_NAME; static final Param REPOSITORY; static final Param BRANCH; static final Param HEAD; static final Param DEFAULT_NAMESPACE; static final Param CREATE; }### Answer:
@Test public void testCanProcess() { final File workingDir = repositoryTempFolder.getRoot(); Map<String, Serializable> params = ImmutableMap.of(); assertFalse(factory.canProcess(params)); params = ImmutableMap.of(REPOSITORY.key, (Serializable) (workingDir.getName() + "/shouldntExist")); assertFalse(factory.canProcess(params)); params = ImmutableMap.of(REPOSITORY.key, (Serializable) workingDir.getAbsolutePath()); assertTrue(factory.canProcess(params)); params = ImmutableMap.of(REPOSITORY.key, (Serializable) repoDirectory.getPath()); assertTrue(factory.canProcess(params)); params = ImmutableMap.of(REPOSITORY.key, (Serializable) repoDirectory.getAbsolutePath()); assertTrue(factory.canProcess(params)); params = ImmutableMap.of(REPOSITORY.key, (Serializable) repoDirectory); assertTrue(factory.canProcess(params)); }