@Test
public void branchChangedFiles_should_throw_when_dir_nonexistent() {

  thrown.expect(MessageException.class);
  thrown.expectMessage("Not inside a Git work tree: ");
  newScmProvider().branchChangedFiles("master", temp.getRoot().toPath().resolve("nonexistent"));
}