@Test
public void branchChangedFiles_should_return_null_on_io_errors_of_repo_builder() {

  GitScmProvider provider = new GitScmProvider(mockCommand(), analysisWarnings, gitIgnoreCommand, system2) {
    @Override
    Repository buildRepo(Path basedir) throws IOException {
      throw new IOException();
    }
  };
  assertThat(provider.branchChangedFiles("branch", worktree)).isNull();
  verifyZeroInteractions(analysisWarnings);
}