CouchDBDocumentConfiguration implements DocumentConfiguration { @Override public CouchDBDocumentCollectionManagerFactory get() { Map<String, String> configuration = ConfigurationReader.from(FILE_CONFIGURATION); SettingsBuilder builder = Settings.builder(); configuration.entrySet().forEach(e -> builder.put(e.getKey(), e.getValue())); return get(builder.build()); }  @Override CouchDBDocumentCollectionManagerFactory get(); @Override CouchDBDocumentCollectionManagerFactory get(Settings settings);  }
@Test public void shouldCreateDocumentCollectionManagerFactoryByMap() { CouchDBDocumentConfiguration configuration = new CouchDBDocumentConfiguration(); DocumentCollectionManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }
@Test public void shouldCreateDocumentCollectionManagerFactoryByFile() { CouchDBDocumentConfiguration configuration = new CouchDBDocumentConfiguration(); DocumentCollectionManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }