@Test
public void testCantForkThisUserIsNotOwner() throws IOException {

    DockerfileGitHubUtil dockerfileGitHubUtil = mock(DockerfileGitHubUtil.class);
    GHRepository repo = mock(GHRepository.class);
    ForkableRepoValidator validator = new ForkableRepoValidator(dockerfileGitHubUtil);
    when(dockerfileGitHubUtil.thisUserIsOwner(repo)).thenReturn(true);
    ShouldForkResult shouldForkResult = validator.thisUserIsNotOwner(repo);
    assertFalse(shouldForkResult.isForkable());
    assertEquals(shouldForkResult.getReason(), REPO_IS_OWNED_BY_THIS_USER);
}