@Test
public void testHasNoChangesIfExceptionThrownDuringRead() throws IOException {

    DockerfileGitHubUtil dockerfileGitHubUtil = mock(DockerfileGitHubUtil.class);
    GHRepository repo = mock(GHRepository.class);
    ForkableRepoValidator validator = new ForkableRepoValidator(dockerfileGitHubUtil);
    GHContent content = mock(GHContent.class);
    GitForkBranch gitForkBranch = new GitForkBranch("name", "tag", null);
    when(content.read()).thenThrow(new IOException("failed on IO"));
    assertTrue(validator.hasNoChanges(content, gitForkBranch));
}