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

    DSObject config = new DSObject("\n" +
            "     {\n" +
            "         \"database\": [\n" +
            "             {\n" +
            "                 \"key\": \"databaseKey\"," +
            "                 \"type\": \"TestStrategy\",\n" +
            "                 \"config\": {}\n" +
            "             }\n" +
            "         ]\n" +
            "     }");
    DatabaseSectionStrategy strategy = new DatabaseSectionStrategy();
    strategy.onLoadConfig(config);
    assertSame(configMock, IOC.resolve(Keys.getOrAdd("databaseKey")));
}