@Test
public void testFindImagesAndFix_notModifiedPostData() throws Exception {

    gitHubUtil = mock(GitHubUtil.class);
    BufferedReader reader = mock(BufferedReader.class);
    GHContent content = mock(GHContent.class);
    when(content.getPath()).thenReturn("path");
    when(content.update(anyString(), anyString(), anyString())).thenReturn(null);
    when(reader.readLine()).thenReturn("hello", "FROM image:tag as builder",
            "this is a test", null);
    dockerfileGitHubUtil = new DockerfileGitHubUtil(gitHubUtil);
    StringBuilder strB = new StringBuilder();
    boolean modified = dockerfileGitHubUtil.rewriteDockerfile("image", "tag", reader, strB);
    assertFalse(modified, "Expected the dockerfile to not have changed.");
}