@Test
public void branchRef() throws Exception {
add("a.txt", "a");
RevCommit commit = add("test.txt", "content");
Ref ref = branch(testRepo, "branch1");
Repository repo = new FileRepository(testRepo);
RevCommit refCommit = CommitUtils.getRef(repo, ref);
assertNotNull(refCommit);
assertEquals(commit, refCommit);
Collection<RevCommit> commits = CommitUtils.getBranches(repo);
assertNotNull(commits);