@Test
public void dontFailOnNewFile() 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;
  String relativePath2 = "src/main/java/org/dummy/Dummy2.java";
  DefaultInputFile inputFile = new TestInputFileBuilder("foo", relativePath).build();
  fs.add(inputFile);
  DefaultInputFile inputFile2 = new TestInputFileBuilder("foo", relativePath2).build();
  fs.add(inputFile2);
  // Emulate a new file
  FileUtils.copyFile(new File(baseDir, relativePath), new File(baseDir, relativePath2));
  BlameOutput blameResult = mock(BlameOutput.class);
  when(input.filesToBlame()).thenReturn(Arrays.asList(inputFile, inputFile2));
  jGitBlameCommand.blame(input, blameResult);
}