@Test
public void dontFailOnModifiedFile() throws IOException {

  File projectDir = temp.newFolder();
  javaUnzip(new File("test-repos/dummy-git.zip"), projectDir);
  JGitBlameCommand jGitBlameCommand = newJGitBlameCommand();
  File baseDir = new File(projectDir, "dummy-git");
  DefaultFileSystem fs = new DefaultFileSystem(baseDir);
  when(input.fileSystem()).thenReturn(fs);
  String relativePath = DUMMY_JAVA;
  DefaultInputFile inputFile = new TestInputFileBuilder("foo", relativePath).build();
  fs.add(inputFile);
  // Emulate a modification
  Files.write(baseDir.toPath().resolve(relativePath), "modification and \n some new line".getBytes());
  BlameOutput blameResult = mock(BlameOutput.class);
  when(input.filesToBlame()).thenReturn(Arrays.asList(inputFile));
  jGitBlameCommand.blame(input, blameResult);
}