PathUtil { public String stripProtocolAndBranch(String uri) { return protocolAndBranch.matcher(uri).replaceFirst(""); }  org.uberfire.backend.vfs.Path normalizePath(org.uberfire.backend.vfs.Path path); org.uberfire.java.nio.file.Path convert(org.uberfire.backend.vfs.Path path); org.uberfire.backend.vfs.Path convert(org.uberfire.java.nio.file.Path path); String stripProtocolAndBranch(String uri); String stripRepoNameAndSpace(String strippedPath); String getNiogitRepoPath(org.uberfire.java.nio.file.Path path); Optional<String> extractBranch(String uri); String replaceBranch(final String newBranchName,
                                final String uri);  }
@Test public void stripGitProtocolAndBranch() throws Exception { final String result = pathUtil.stripProtocolAndBranch("git: assertEquals("space/repo/some/path", result); }
@Test public void stripDefaultProtocolAndBranch() throws Exception { final String result = pathUtil.stripProtocolAndBranch("default: assertEquals("space/repo/some/path", result); }
@Test public void stripProtocolMissingBranch() throws Exception { final String result = pathUtil.stripProtocolAndBranch("default: assertEquals("space/repo/some/path", result); }