private static void initDB(Connection connection) throws Exception {
        ClassLoader cl = ServletGatewayTestServer.class.getClassLoader();
        URL resource = cl.getResource("ddls/apiman-gateway_h2.ddl");
        try (InputStream is = resource.openStream()) {
            DdlParser ddlParser = new DdlParser();
            List<String> statements = ddlParser.parse(is);
            for (String sql : statements){
                PreparedStatement statement = connection.prepareStatement(sql);
                try {
                    statement.execute();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
Initialize the DB with the apiman gateway DDL.
@param connection
gateway/test/src/test/java/io/apiman/gateway/test/junit/servlet/ServletGatewayTestServer.java