@Test
public void testTryRetrievingRepository() throws Exception {

    GitHub github = mock(GitHub.class);
    when(github.getRepository(eq("repo"))).thenReturn(new GHRepository());
    GitHubUtil gitHubUtil = new GitHubUtil(github);
    gitHubUtil.tryRetrievingRepository("repo");
    verify(github, times(1)).getRepository(eq("repo"));
}