    @Test
    public void testgetCommitType() {

        assertEquals("should be type head", Repo.COMMIT_TYPE_HEAD, Repo.getCommitType("refs/heads/foo"));
        assertEquals("should be type head", Repo.COMMIT_TYPE_HEAD, Repo.getCommitType("refs/heads/foo/bar"));
        assertEquals("should be type remote", Repo.COMMIT_TYPE_REMOTE, Repo.getCommitType("refs/remotes/foo"));
        assertEquals("should be type remote", Repo.COMMIT_TYPE_REMOTE, Repo.getCommitType("refs/remotes/foo/bar"));
        assertEquals("should be type remote", Repo.COMMIT_TYPE_TAG, Repo.getCommitType("refs/tags/foo/bar"));
        assertEquals("should be type remote", Repo.COMMIT_TYPE_TAG, Repo.getCommitType("refs/tags/foo/bar"));
        assertEquals("should be type remote", Repo.COMMIT_TYPE_UNKNOWN, Repo.getCommitType("refs/blah/foo/bar"));
    }