@Test
public void testTryRetrievingContent() throws Exception {

    GitHub github = mock(GitHub.class);
    GHRepository repo = mock(GHRepository.class);
    when(repo.getFileContent(eq("path"), eq("branch"))).thenReturn(new GHContent());
    GitHubUtil gitHubUtil = new GitHubUtil(github);
    gitHubUtil.tryRetrievingContent(repo, "path", "branch");
    verify(repo, times(1)).getFileContent(eq("path"), eq("branch"));
}