public static ConnectionUrl newInstance(final String url) {
        ConnectionUrl connectionUrl = new ConnectionUrl(url);
        connectionUrl.parseUrl();
        return connectionUrl;
    }
This is a part of the connection string that may specify host:port/databasename.
It may vary for different clients and so clients can parse it as needed.
modules/jdbc/src/main/java/org/testcontainers/jdbc/ConnectionUrl.java