String getJdbcUrl() {
        String jdbcUrl = properties.get(JDBCResource.URI);
        // use org.mariadb.jdbc.Driver for mysql because of gpl protocol
        if (jdbcUrl.startsWith("jdbc:mysql")) {
            jdbcUrl = jdbcUrl.replaceFirst("jdbc:mysql", "jdbc:mariadb");
        }
        return jdbcUrl;
    }
@Test
    public void testGetJdbcUrl() {
        properties.put(JDBCResource.URI, "jdbc:mysql://127.0.0.1:3306");
        JDBCMetadata jdbcMetadata = new JDBCMetadata(properties, "catalog");
        Assert.assertEquals("jdbc:mariadb://127.0.0.1:3306", jdbcMetadata.getJdbcUrl());
        properties.put(JDBCResource.URI, "jdbc:mysql://abc.mysql.com:3306");
        jdbcMetadata = new JDBCMetadata(properties, "catalog");
        Assert.assertEquals("jdbc:mariadb://abc.mysql.com:3306", jdbcMetadata.getJdbcUrl());
    }