RevTag tag2 = this.createTag();
RevCommit commit1 = this.createCommit();
RevObject commit2 = this.createCommit();
when(tagRef1.getObjectId()).thenReturn(tag1);
when(revWalk.parseTag(tag1)).thenReturn(tag1);
when(revWalk.peel(tag1)).thenReturn(commit1);
when(tagRef2.getObjectId()).thenReturn(tag2);
when(revWalk.parseTag(tag2)).thenReturn(tag2);
when(revWalk.peel(tag2)).thenReturn(commit2);
Map<String, RevTag> tags = new HashMap<String, RevTag>();