@Test
public void shouldReturnDbConfiguredFromDocument() throws ParsingException {

    RelationalDb db = Schematic.getDb(RelationalProviderTest.class.getClassLoader().getResourceAsStream("db-config-h2-full.json"));
    assertNotNull(db);
    assertEquals("jdbc:h2:mem:modeshape", db.id());
    RelationalDbConfig config = db.config();
    assertNotNull(config);
    assertFalse(config.createOnStart());
    assertTrue(config.dropOnExit());
    assertEquals("REPO", config.tableName());
    assertEquals(100, config.fetchSize());
    assertFalse(config.compress());
    DataSourceManager dsManager = db.dsManager();
    assertNotNull(dsManager);
    assertEquals(DatabaseType.Name.H2, dsManager.dbType().name());
    HikariDataSource dataSource = (HikariDataSource) dsManager.dataSource();
    assertEquals((int) Integer.valueOf(RelationalDbConfig.DEFAULT_MIN_IDLE), dataSource.getMinimumIdle());
    assertEquals((int) Integer.valueOf(RelationalDbConfig.DEFAULT_MAX_POOL_SIZE), dataSource.getMaximumPoolSize());
    assertEquals((long) Integer.valueOf(RelationalDbConfig.DEFAULT_IDLE_TIMEOUT), dataSource.getIdleTimeout());
}