@Test
public void testCreateForkWithExceptionProceeds() throws Exception {

    GitHub github = mock(GitHub.class);
    GitHubUtil gitHubUtil = new GitHubUtil(github);
    GHRepository repo = mock(GHRepository.class);
    when(repo.fork())
            .thenThrow(new IOException("Some issue with forking occurred and the library throws an IOException"));
    assertNull(gitHubUtil.createFork(repo));
    verify(repo, times(1)).fork();
}