@Test
public void testContentHasChangesInDefaultBranch() throws InterruptedException, IOException {

    DockerfileGitHubUtil dockerfileGitHubUtil = mock(DockerfileGitHubUtil.class);
    GHRepository repo = mock(GHRepository.class);
    ForkableRepoValidator validator = new ForkableRepoValidator(dockerfileGitHubUtil);
    GHContent content = mock(GHContent.class);
    when(content.getPath()).thenReturn("/Dockerfile");
    GitForkBranch gitForkBranch = new GitForkBranch("someImage", "someTag", null);
    when(dockerfileGitHubUtil.tryRetrievingContent(eq(repo), any(), any())).thenReturn(content);
    InputStream inputStream = new ByteArrayInputStream("FROM someImage".getBytes());
    when(content.read()).thenReturn(inputStream);
    assertEquals(validator.contentHasChangesInDefaultBranch(repo, content, gitForkBranch), shouldForkResult());
}