public URI getUri(String baseApiUrl, String path) throws URISyntaxException {
        if (baseApiUrl.endsWith("/")) {
            baseApiUrl = baseApiUrl.substring(0, baseApiUrl.length() - 1);
        }
        if (path == null) {
            return new URI(baseApiUrl);
        } else {
            return new URI(baseApiUrl + path);
        }
    }
Gets the absolute URL to use to invoke a rest API at a given path.

@param path
@throws URISyntaxException
test/common/src/main/java/io/apiman/test/common/util/TestPlanRunner.java