public static <T_CONFIG extends AbstractDbConfig, T_CONN_PROV extends DataSource> T_CONN_PROV getTestDbDatasource(
            final AbstractFlyWayDbModule<T_CONFIG, T_CONN_PROV> dbModule,
            final T_CONFIG config) {

        // We are only running one module so just pass in any empty ForceCoreMigration
        return dbModule.getConnectionProvider(
                () -> config,
                new TestDataSourceFactory(CommonDbConfig::new),
                new ForceLegacyMigration() {
                },
                null);
    }
Gets an embedded DB datasource for use in tests that don't use guice injection
stroom-test-common/src/main/java/stroom/test/common/util/db/DbTestUtil.java