@Test
public void testReturnPullRequestForBranch() {

    String imageName = "someimage";
    GHPullRequest ghPullRequest = mock(GHPullRequest.class);
    GHPullRequestQueryBuilder queryBuilder = getGHPullRequestQueryBuilder(imageName, Optional.of(ghPullRequest));
    GHRepository parent = mock(GHRepository.class);
    when(parent.queryPullRequests()).thenReturn(queryBuilder);
    GitForkBranch gitForkBranch = new GitForkBranch(imageName, "", null);
    gitHubUtil = mock(GitHubUtil.class);
    dockerfileGitHubUtil = new DockerfileGitHubUtil(gitHubUtil);
    assertEquals(dockerfileGitHubUtil.getPullRequestForImageBranch(parent, gitForkBranch), Optional.of(ghPullRequest));
}