@Test
public void testCouldNotFindContentInDefaultBranch() throws InterruptedException {

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