*/
@Test
public void getLastCommit() throws Exception {
RevCommit commit1 = add("file1.txt", "content1");
RevCommit commit2 = add("file2.txt", "content2");
assertEquals(commit1, CommitUtils.getLastCommit(new FileRepository(
testRepo), "file1.txt"));
assertEquals(commit2, CommitUtils.getLastCommit(new FileRepository(
testRepo), "file2.txt"));
}