private static void assertRemoteUri(String remoteUri) {
URI uri = URI.create(toRelativeURI(remoteUri));
IPath path = new Path(uri.getPath());
// /git/remote/file/{path}
assertTrue(path.segmentCount() > 3);
assertEquals(GitServlet.GIT_URI.substring(1), path.segment(0));
assertEquals(Remote.RESOURCE, path.segment(1));
assertEquals("file", path.segment(2));
}
protected static void assertCommitUri(String commitUri) {