@Test
public void testLoadingConfig() throws InvalidArgumentException, ResolutionException, ConfigurationProcessingException, ChangeValueException, IDatabaseException {

    List<String> iObjects = new LinkedList<>();
    iObjects.add("{\"foo\": \"bar\"}");
    iObjects.add("{\"foo1\": \"bar1\"}");
    IObject inMemoryDatabaseConfig = new DSObject("{\"name\":\"my_collection_name\"}");
    List<IObject> inMemoryDb = new ArrayList<>();
    DSObject config = new DSObject();
    inMemoryDatabaseConfig.setValue(new FieldName("documents"), iObjects);
    inMemoryDb.add(inMemoryDatabaseConfig);
    InMemoryDBSectionProcessingStrategy sectionProcessingStrategy = new InMemoryDBSectionProcessingStrategy();
    config.setValue(new FieldName("inMemoryDb"), inMemoryDb);
    sectionProcessingStrategy.onLoadConfig(config);
    verify(inMemoryDatabase).createCollection("my_collection_name");
    verify(inMemoryDatabase, times(2)).insert(mockObject, "my_collection_name");
}