@Test
public void relativePathFromScmRoot_should_return_relative_path_for_file_in_project_subdir() throws IOException {

  Path relpath = Paths.get("sub/dir/to/somefile.xoo");
  Path path = worktree.resolve(relpath);
  Files.createDirectories(path.getParent());
  Files.createFile(path);
  assertThat(newGitScmProvider().relativePathFromScmRoot(path)).isEqualTo(relpath);
}