Ref tagRef2 = mock(Ref.class);
tagRefs.put("1.0.0", tagRef1);
tagRefs.put("2.0.0", tagRef2);
when(this.repo.getTags()).thenReturn(tagRefs);
RevTag tag1 = this.createTag();
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);