@Test
public void testRepoHasBranchTrue() throws IOException {

    GitHubUtil gitHubUtil = mock(GitHubUtil.class);
    when(gitHubUtil.repoHasBranch(any(), any())).thenCallRealMethod();
    GHRepository repo = mock(GHRepository.class);
    String branchName = "some-branch";
    when(repo.getBranch(branchName)).thenReturn(mock(GHBranch.class));
    assertTrue(gitHubUtil.repoHasBranch(repo, branchName));
}