public String defaultRemoteUrl() {
        final String sanitizedUrl = sanitizeUrl();
        try {
            URI uri = new URI(sanitizedUrl);
            if (uri.getUserInfo() != null) {
                uri = new URI(uri.getScheme(), removePassword(uri.getUserInfo()), uri.getHost(), uri.getPort(), uri.getPath(), uri.getQuery(), uri.getFragment());
                return uri.toString();
            }
        } catch (URISyntaxException e) {
            return sanitizedUrl;
        }
        return sanitizedUrl;
    }
@Test
    void shouldNotModifyFileURIS() {
        assertThat(new HgUrlArgument("file://junk").defaultRemoteUrl(), is("file://junk"));
    }